diff --git a/bbbackup.py b/bbbackup.py index 574ce33..bdc79d9 100755 --- a/bbbackup.py +++ b/bbbackup.py @@ -271,7 +271,8 @@ def get_size( dir_path ): for dirpath, dirnames, filenames in os.walk( dir_path ): for f in filenames: fp = os.path.join(dirpath, f) - total_size += os.path.getsize(fp) + if os.path.isfile(fp): + total_size += os.path.getsize(fp) return total_size # HELPER TO COLORIZE PRINT OUTPUT