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 <[email protected]>
  • Loading branch information
Bensikrac authored and AndyScherzinger committed May 21, 2024
1 parent 056e4ae commit a04edc5
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 a04edc5

Please sign in to comment.