memoryfilesystem icon indicating copy to clipboard operation
memoryfilesystem copied to clipboard

An in memory implementation of a JSR-203 file system

Results 26 memoryfilesystem issues
Sort by recently updated
recently updated
newest added

### Fix failing Maven build on Windows Two parametrised test iterations using symlinks on native file systems were failing on Windows, because there we do not have UNIX-style symlinks. Skipping...

bug
build

Since JDK 20 paths on macOS are no longer normalised to NFD See: - [JDK-8289689](https://bugs.openjdk.org/browse/JDK-8289689) "(fs) Re-examine the need for normalization to Unicode Normalization Format D (macOS)" - https://github.com/openjdk/jdk/commit/25dfcbdea521f2963de47fa3ae0fe1b602e62fee

`newInputStream` and `newOutputStream` are not atomic: They first call `#getEntry` which releases the lock and does not increment the open count. Only after this are the streams created and the...

bug

Consider introducing a Flags abstraction similar to `sun.nio.fs.UnixChannelFactory$Flags`.

optimization

We had a bug in case of an underflow in `#readFully`.

`@CompatibilityTest` should inject the correct file system

enhancement

I'm sending you an example, which allows you to use the FileSystems Mock in a transparent way ``` @Test @ExtendWith(MockfsExtension.class) void testExecute_MockFSNew(FileSystem fileSystem) throws Exception { Path master = Files.createDirectories(Paths.get("/fakedir/conf/java/rest/master"));...

A couple of things in `MemoryFileStore` need reviewing: - `#getAttribute` should probably support `"totalSpace"`, `"usableSpace"` and `"unallocatedSpace"` - `#supportsFileAttributeView` and `#supportsFileAttributeView` are probably fine, at least from reading the method...

I didn't find how to set the memory space size of the built file system. I looked at the `MemoryFileSystemBuilder` JavaDoc and at the README, but this feature seems to...

enhancement

Although the exception says: java.lang.AssertionError: files bigger than 16**G**B not yet supported; According to my tests, files bigger than 16**M**B are not supported. According to the following lines: https://github.com/marschall/memoryfilesystem/blob/master/src/main/java/com/github/marschall/memoryfilesystem/MemoryInode.java#L32 https://github.com/marschall/memoryfilesystem/blob/master/src/main/java/com/github/marschall/memoryfilesystem/MemoryInode.java#L356...

enhancement