diff --git a/pycryptomator/__init__.py b/pycryptomator/__init__.py index 1dfcace..bee37a3 100644 --- a/pycryptomator/__init__.py +++ b/pycryptomator/__init__.py @@ -1,4 +1,4 @@ COPYRIGHT = '''Copyright (C)2024, by maxpat78.''' -__version__ = '1.9' +__version__ = '1.10' __all__ = ["Vault", "init_vault", "backupDirIds"] from .cryptomator import * diff --git a/pycryptomator/cmshell.py b/pycryptomator/cmshell.py index eba4f27..7e0325d 100644 --- a/pycryptomator/cmshell.py +++ b/pycryptomator/cmshell.py @@ -183,7 +183,7 @@ def do_ln(p, arg): print('use: ln ') return try: - p.vault.ln(argl[0], argl[1]) + p.vault.ln(argl[0], p._prep_cd(argl[1])) except: print(sys.exception()) diff --git a/pycryptomator/cryptomator.py b/pycryptomator/cryptomator.py index eaee617..64a702a 100644 --- a/pycryptomator/cryptomator.py +++ b/pycryptomator/cryptomator.py @@ -363,7 +363,7 @@ def decryptFile(p, virtualpath, dest, force=False, move=False): raise BaseException('destination file "%s" exists and won\'t get overwritten!'%dest) # creates destination tree if necessary bn = dirname(dest) - if not exists(bn): + if bn and not exists(bn): os.makedirs(bn) out = open(dest, 'wb') @@ -397,7 +397,7 @@ def decryptDir(p, virtualpath, dest, force=False, move=False, root_dir=None): dn = join(dest, stripr(fn, root_dir)) # target pathname #~ dn = join(dest, fn[1:]) # target pathname bn = dirname(dn) # target base dir - if not exists(bn): + if bn and not exists(bn): os.makedirs(bn) if it in files: total_bytes += p.decryptFile(fn, dn, force, move)