Skip to content

Commit 24e6054

Browse files
authored
Update pywwwget_chatgpt.py
1 parent 4dc2cb1 commit 24e6054

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pywwwget_chatgpt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def detect_cwd(ftp, file_dir):
360360
Test whether cwd into file_dir works. Returns True if it does,
361361
False if not (so absolute paths should be used).
362362
"""
363-
if not file_dir or file_dir in ("/", ""):
363+
if not file_dir:
364364
return False # nothing to cwd into
365365
try:
366366
ftp.cwd(file_dir)

0 commit comments

Comments
 (0)