summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--exclude.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/exclude.cpp b/exclude.cpp
index f992ecf02..789c246e2 100644
--- a/exclude.cpp
+++ b/exclude.cpp
@@ -81,7 +81,7 @@ uint64_t TWExclude::Get_Folder_Size(const string& Path) {
}
if ((st.st_mode & S_IFDIR) && !check_skip_dirs(FullPath) && de->d_type != DT_SOCK) {
dusize += Get_Folder_Size(FullPath);
- } else if (st.st_mode & S_IFREG) {
+ } else if (st.st_mode & S_IFREG || st.st_mode & S_IFLNK) {
dusize += (uint64_t)(st.st_size);
}
}