Skip to content

Commit

Permalink
Replace null value with new SKIP_SUBTREE enum option
Browse files Browse the repository at this point in the history
Signed-off-by: Benedek Major <benedek@major.onl>
  • Loading branch information
Bensikrac committed May 10, 2024
1 parent c7e4519 commit 598c1c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public FileVisitResult visitFile(Path path, BasicFileAttributes attrs) {
@Override
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {
if (syncedFolder.isExcludeHidden() && dir.compareTo(Paths.get(syncedFolder.getLocalPath())) != 0 && dir.toFile().isHidden()) {
return null;
return FileVisitResult.SKIP_SUBTREE;
}
return FileVisitResult.CONTINUE;
}
Expand Down

0 comments on commit 598c1c1

Please sign in to comment.