You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This line of code suggests that CipherFileChannel always requires sub file system to implement toFile() method. This method links very versatile java nio file system framework with legacy java io File class, which is only suitable for local files. Thus CipherFileChannel will not work with any file system implementation that can't represent path as local file. Examples are: In-memory file system, remote file system, distributed filesystem, http file system, etc...
I suggest using FileChannel#open instead of creating new RandomAccessFile. Note that FileChannel implements SeekableByteChannel
The text was updated successfully, but these errors were encountered:
encfs4j/src/main/java/de/agitos/encfs4j/CipherFileChannel.java
Line 132 in 2ae3cc6
This line of code suggests that
CipherFileChannel
always requires sub file system to implement toFile() method. This method links very versatile java nio file system framework with legacy java io File class, which is only suitable for local files. ThusCipherFileChannel
will not work with any file system implementation that can't represent path as local file. Examples are: In-memory file system, remote file system, distributed filesystem, http file system, etc...I suggest using
FileChannel#open
instead of creating newRandomAccessFile
. Note thatFileChannel
implementsSeekableByteChannel
The text was updated successfully, but these errors were encountered: