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
If the given size is less than the file's current size then the file is truncated, discarding any bytes beyond the new end of the file. If the given size is greater than or equal to the file's current size then the file is not modified. In either case, if this channel's file position is greater than the given size then it is set to that size.
As FileChannel.html#truncate() of the Java NIO API doesn't follow the POSIX standard by not extending a file if it is shorter (by using zero bytes), we run into the following issue cryptomator/cryptomator#2218
From the doc:
of https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/nio/channels/FileChannel.html#truncate(long)
The text was updated successfully, but these errors were encountered: