Skip to content

Commit ef7dde5

Browse files
authored
Update pywwwget_nextver.py
1 parent 6bed1d0 commit ef7dde5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PyWWW/pywwwget_nextver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ def detect_cwd(ftp, file_dir):
566566
Test whether cwd into file_dir works. Returns True if it does,
567567
False if not (so absolute paths should be used).
568568
"""
569-
if not file_dir or file_dir in ("/", ""):
569+
if not file_dir:
570570
return False # nothing to cwd into
571571
try:
572572
ftp.cwd(file_dir)

0 commit comments

Comments
 (0)