Skip to content

Commit e26aa37

Browse files
authored
Update pywwwget_merged.py
1 parent 654a67b commit e26aa37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pywwwget_merged.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def detect_cwd(ftp, file_dir):
367367
Test whether cwd into file_dir works. Returns True if it does,
368368
False if not (so absolute paths should be used).
369369
"""
370-
if not file_dir or file_dir in ("/", ""):
370+
if not file_dir:
371371
return False # nothing to cwd into
372372
try:
373373
ftp.cwd(file_dir)

0 commit comments

Comments
 (0)