Skip to content

Commit

Permalink
Check preferences.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Sep 5, 2023
1 parent 9e7d1e1 commit c48261c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,10 @@ private boolean isSupported(final Path file) {
// No versioning for previous versions
return false;
}
return file.isDirectory() || include.matcher(file.getName()).matches();
if(new HostPreferences(session.getHost()).getBoolean("queue.upload.file.versioning")) {
return file.isDirectory() || include.matcher(file.getName()).matches();
}
return false;
}

private interface VersioningDirectoryProvider {
Expand Down

0 comments on commit c48261c

Please sign in to comment.