diff --git a/src/window.py b/src/window.py index 6398d51..6292f26 100644 --- a/src/window.py +++ b/src/window.py @@ -90,6 +90,8 @@ class FlattoolGuiWindow(Adw.ApplicationWindow): try: # print("[+] Getting the size of", directory) for entry in os.scandir(directory): + if entry.is_symlink(): + continue # Skip symlinks if entry.is_file(): # if it's a file, use stat() function total += entry.stat().st_size