Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

TypeError: is_dir() takes no positional arguments #6

Open
ohidurbappy opened this issue May 4, 2020 · 0 comments · May be fixed by #7
Open

TypeError: is_dir() takes no positional arguments #6

ohidurbappy opened this issue May 4, 2020 · 0 comments · May be fixed by #7

Comments

@ohidurbappy
Copy link

Traceback (most recent call last):
File "d:/test/duplicate-finder.py", line 83, in
result=duplicate.purge(target_path,minsize=0,followlinks=False,scanempties=True,comparename=True,scanhidden=True,ondel=purge_callback,onerror=error_callback)
File "D:\test\venv\lib\site-packages\deplicate-1.2.3-py3.8.egg\duplicate_init_.py", line 38, in
purge
d.purge(trash, ondel, onerror, notify)
File "D:\test\venv\lib\site-packages\deplicate-1.2.3-py3.8.egg\duplicate\deplicate.py", line 164, in purge
self._find(onerror, notify)
File "D:\test\venv\lib\site-packages\deplicate-1.2.3-py3.8.egg\duplicate\deplicate.py", line 136, in _find
self._scan(onerror, notify)
File "D:\test\venv\lib\site-packages\deplicate-1.2.3-py3.8.egg\duplicate\deplicate.py", line 112, in _scan
self._dupinfo, self._scnerrors = scandups(
File "D:\test\venv\lib\site-packages\deplicate-1.2.3-py3.8.egg\duplicate\core.py", line 457, in scandups
_dirscan(dirnames, dupdict, errlist, scnerrlist, scnargs, onerror,
File "D:\test\venv\lib\site-packages\deplicate-1.2.3-py3.8.egg\duplicate\core.py", line 339, in _dirscan
for _, files, links in walk_it:
File "D:\test\venv\lib\site-packages\deplicate-1.2.3-py3.8.egg\duplicate\utils\fs\common.py", line
140, in _walk
dirs, files, links = _scandir(path, onerror, followlinks)
File "D:\test\venv\lib\site-packages\deplicate-1.2.3-py3.8.egg\duplicate\utils\fs\common.py", line
121, in _scandir
elif entry.is_dir(followlinks):
TypeError: is_dir() takes no positional arguments

thomas-hori added a commit to thomas-hori/deplicate that referenced this issue Nov 23, 2020
cyph3r42 added a commit to cyph3r42/deplicate that referenced this issue Jan 6, 2021
Incorporates fixes by @daviss92, @stephend017, and @thomas-hori

Fixes issues deplicate#2, deplicate#3, deplicate#5, & deplicate#6.

Also resolves issues with modification of dictionaries while looping.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
1 participant