Use pathclass.cwd.
This commit is contained in:
parent
3564918a49
commit
fde04ba088
2 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ def fileprefix(
|
|||
ctime=False,
|
||||
autoyes=False,
|
||||
):
|
||||
current_directory = pathclass.Path('.')
|
||||
current_directory = pathclass.cwd()
|
||||
|
||||
prefix = prefix.strip()
|
||||
if prefix == ':':
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue