Skip to content

Commit 5491530

Browse files
authored
Add files via upload
1 parent f9f5887 commit 5491530

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

pycatfile.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -932,9 +932,6 @@ def ListDir(dirpath, followlink=False, duplicates=False, include_regex=None, exc
932932
Returns:
933933
list: A list of files and directories matching the criteria.
934934
"""
935-
if(re.findall("^(file):///", dirpath)):
936-
dparsed = urlparse(dirpath)
937-
dirpath = url2pathname(dparsed.path)
938935
try:
939936
if os.stat not in os.supports_follow_symlinks and followlink:
940937
followlink = False
@@ -1005,9 +1002,6 @@ def ListDirAdvanced(dirpath, followlink=False, duplicates=False, include_regex=N
10051002
Returns:
10061003
list: A list of files and directories matching the criteria.
10071004
"""
1008-
if(re.findall("^(file):///", dirpath)):
1009-
dparsed = urlparse(dirpath)
1010-
dirpath = url2pathname(dparsed.path)
10111005
try:
10121006
if os.stat not in os.supports_follow_symlinks and followlink:
10131007
followlink = False

0 commit comments

Comments
 (0)