Closed overheadhunter closed 5 years ago
Once we support symbolic links (depends on #38), we need to make sure to respect link-specifc options:
FileVisitOption.FOLLOW_LINKS is only used by Files.walkFileTree, which will translate to the corresponding options used for the FileSystemProvider.
FileVisitOption.FOLLOW_LINKS
Files.walkFileTree
LinkOption.NOFOLLOW_LINKS on the other hand is used in various calls to the FileSystemProvider such as Files.copy and Files.getFileAttributeView.
LinkOption.NOFOLLOW_LINKS
Files.copy
Files.getFileAttributeView
TODO:
NOFOLLOW_LINKS
LinkOption
readAttributes()
CopyOption
copy()
move()
OpenOption
newFileChannel()
Once we support symbolic links (depends on #38), we need to make sure to respect link-specifc options:
FileVisitOption.FOLLOW_LINKS
is only used byFiles.walkFileTree
, which will translate to the corresponding options used for the FileSystemProvider.LinkOption.NOFOLLOW_LINKS
on the other hand is used in various calls to the FileSystemProvider such asFiles.copy
andFiles.getFileAttributeView
.TODO:
NOFOLLOW_LINKS
in methods accepting a set ofLinkOption
s such asreadAttributes()
.NOFOLLOW_LINKS
in methods accepting a set ofCopyOption
s such ascopy()
ormove()
.NOFOLLOW_LINKS
in methods accepting a set ofOpenOption
s such asnewFileChannel()
.