Skip to content

Commit cb6d75b

Browse files
authored
Merge pull request #360 from joelwilson/master
take alias files into account by ignoring them
2 parents 4a03507 + e190d4d commit cb6d75b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

owlplug-client/src/main/java/com/owlplug/plugin/tasks/FileSyncTask.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,10 @@ public long extractFolderSize(File directory, FileStat parent) {
107107
directoryStat.getChilds().add(fileStat);
108108
length += fileStat.getLength();
109109

110-
} else {
110+
} else if (file.isDirectory()) {
111111
length += extractFolderSize(file, directoryStat);
112112
}
113+
// else it's probably a mac finder alias. Ignore it.
113114
}
114115

115116
directoryStat.setLength(length);

0 commit comments

Comments
 (0)