Skip to content

Commit fdabadc

Browse files
authored
Add files via upload
1 parent 595aa52 commit fdabadc

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

pyarchivefile.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -919,9 +919,6 @@ def ListDir(dirpath, followlink=False, duplicates=False, include_regex=None, exc
919919
Returns:
920920
list: A list of files and directories matching the criteria.
921921
"""
922-
if(re.findall("^(file):///", dirpath)):
923-
dparsed = urlparse(dirpath)
924-
dirpath = url2pathname(dparsed.path)
925922
try:
926923
if os.stat not in os.supports_follow_symlinks and followlink:
927924
followlink = False
@@ -992,9 +989,6 @@ def ListDirAdvanced(dirpath, followlink=False, duplicates=False, include_regex=N
992989
Returns:
993990
list: A list of files and directories matching the criteria.
994991
"""
995-
if(re.findall("^(file):///", dirpath)):
996-
dparsed = urlparse(dirpath)
997-
dirpath = url2pathname(dparsed.path)
998992
try:
999993
if os.stat not in os.supports_follow_symlinks and followlink:
1000994
followlink = False

0 commit comments

Comments
 (0)