Skip to content

Commit

Permalink
Bug fixed
Browse files Browse the repository at this point in the history
ls used sys.exit and v (as vault object) after code reorganization
  • Loading branch information
maxpat78 committed Oct 15, 2024
1 parent 5a233db commit 952189b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pycryptomator/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
COPYRIGHT = '''Copyright (C)2024, by maxpat78.'''
__version__ = '1.2'
__version__ = '1.3'
__all__ = ["Vault", "init_vault", "backupDirIds"]
6 changes: 3 additions & 3 deletions pycryptomator/cryptomator.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ def _realsize(n):
info = p.getInfo(virtualpath)
if not info.isDir:
print(virtualpath, 'is not a directory!')
sys.exit(1)
return
if info.pointsTo:
print(virtualpath, 'points to', info.pointsTo)
virtualpath = info.pointsTo
Expand All @@ -546,11 +546,11 @@ def _realsize(n):
tot_size = 0
for it in dirs:
full = join(root, it)
st = v.stat(full)
st = p.stat(full)
print('%12s %s %s' %('<DIR>', time.strftime('%Y-%m-%d %H:%M', time.localtime(st.st_mtime)), it))
for it in files:
full = join(root, it)
st = v.stat(full)
st = p.stat(full)
size = _realsize(st.st_size)
tot_size += size
info = p.getInfo(full)
Expand Down

0 comments on commit 952189b

Please sign in to comment.