Skip to content

Commit

Permalink
Fixing symlink error
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexFlipnote committed Jul 25, 2019
1 parent c15819d commit c12dd39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion diskspace/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "1.0.3.2"
__version__ = "1.0.4"

from .pathRender import ShowPath
6 changes: 5 additions & 1 deletion diskspace/pathRender.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ def getPathFiles(self):
and converts them to class FileInfo """
for i, file in enumerate(os.listdir(self.path)):
is_folder = False
size = os.path.getsize(file)

try:
size = os.path.getsize(file)
except FileNotFoundError:
print(f"Skipping {file}, unknown file or symlink")

if not os.path.isfile(file):
try:
Expand Down

0 comments on commit c12dd39

Please sign in to comment.