Skip to content

Commit 8091c38

Browse files
authored
Update pywwwget_nextver.py
1 parent 24e6054 commit 8091c38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pywwwget_nextver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def detect_cwd(ftp, file_dir):
381381
Test whether cwd into file_dir works. Returns True if it does,
382382
False if not (so absolute paths should be used).
383383
"""
384-
if not file_dir or file_dir in ("/", ""):
384+
if not file_dir:
385385
return False # nothing to cwd into
386386
try:
387387
ftp.cwd(file_dir)

0 commit comments

Comments
 (0)