Skip to content

Commit 6bed1d0

Browse files
authored
Update pywwwget_merged.py
1 parent 276d8b6 commit 6bed1d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PyWWW/pywwwget_merged.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ def detect_cwd(ftp, file_dir):
552552
Test whether cwd into file_dir works. Returns True if it does,
553553
False if not (so absolute paths should be used).
554554
"""
555-
if not file_dir or file_dir in ("/", ""):
555+
if not file_dir:
556556
return False # nothing to cwd into
557557
try:
558558
ftp.cwd(file_dir)

0 commit comments

Comments
 (0)