Skip to content

Commit

Permalink
[ftp] Don't append slash to NLST in exists()
Browse files Browse the repository at this point in the history
  • Loading branch information
th3hamm0r committed Jul 25, 2024
1 parent 123b9b9 commit a2d63a4
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 a2d63a4

Please sign in to comment.