Skip to content

Commit 39369f4

Browse files
authored
Update pywwwget_chatgpt.py
1 parent 2699c0b commit 39369f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PyWWW/pywwwget_chatgpt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def detect_cwd(ftp, file_dir):
545545
Test whether cwd into file_dir works. Returns True if it does,
546546
False if not (so absolute paths should be used).
547547
"""
548-
if not file_dir or file_dir in ("/", ""):
548+
if not file_dir:
549549
return False # nothing to cwd into
550550
try:
551551
ftp.cwd(file_dir)

0 commit comments

Comments
 (0)