diff --git a/fileprefix.py b/fileprefix.py index 461b871..4488e6c 100644 --- a/fileprefix.py +++ b/fileprefix.py @@ -32,7 +32,7 @@ def fileprefix( ctime=False, autoyes=False, ): - current_directory = pathclass.Path('.') + current_directory = pathclass.cwd() prefix = prefix.strip() if prefix == ':': diff --git a/prune_shortcuts.py b/prune_shortcuts.py index 1b6708b..58376e1 100644 --- a/prune_shortcuts.py +++ b/prune_shortcuts.py @@ -16,7 +16,7 @@ def prune_shortcuts(recurse=False, autoyes=False): if recurse: lnks = [file for file in spinal.walk_generator('.') if file.extension == 'lnk'] else: - lnks = pathclass.Path('.').glob('*.lnk') + lnks = pathclass.cwd().glob('*.lnk') stale = [] for lnk in lnks: