Skip to content

Commit

Permalink
[ftp] Don't append slash to NLST in exists() (#1438)
Browse files Browse the repository at this point in the history
  • Loading branch information
th3hamm0r authored Jul 27, 2024
1 parent 123b9b9 commit 9ea35e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storages/backends/ftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def exists(self, name):

self._start_connection()
try:
nlst = self._connection.nlst(os.path.dirname(name) + "/")
nlst = self._connection.nlst(os.path.dirname(name))
if name in nlst or os.path.basename(name) in nlst:
return True
else:
Expand Down

0 comments on commit 9ea35e1

Please sign in to comment.