Skip to content

Commit

Permalink
prevent uploading macos metadata files. close #2552
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Aug 27, 2024
1 parent cfa9920 commit 1ccd621
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,10 @@ public void run() {
if(f.getName().endsWith(".uploading"))
continue;

// avoid macOS metadata files
if(f.getName().toLowerCase().contains(".ds_store"))
continue;

// avoid processing files that might still be written by the scanner
if((System.currentTimeMillis() - f.lastModified())<10000l)
continue;
Expand Down

0 comments on commit 1ccd621

Please sign in to comment.