Skip to content

Commit

Permalink
Fix regression with missing size set for regular files.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Jan 14, 2021
1 parent 013f270 commit 1cab01a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -83,7 +83,7 @@ protected PathAttributes toAttributes(final File f) {
}
}
if(null != f.getSize()) {
if(!DRIVE_FOLDER.equals(f.getMimeType()) && !DRIVE_SHORTCUT.equals(f.getMimeType()) && StringUtils.startsWith(f.getMimeType(), GOOGLE_APPS_PREFIX)) {
if(!DRIVE_FOLDER.equals(f.getMimeType()) && !DRIVE_SHORTCUT.equals(f.getMimeType()) && !StringUtils.startsWith(f.getMimeType(), GOOGLE_APPS_PREFIX)) {
attributes.setSize(f.getSize());
}
}
Expand Down

0 comments on commit 1cab01a

Please sign in to comment.