Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion storage_backend_ftp/components/ftp_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def list(self, relative_path):
full_path = self._fullpath(relative_path)
with ftp(self.collection) as client:
try:
return client.nlst(full_path)
return [os.path.basename(path) for path in client.nlst(full_path)]
except IOError as e:
if e.errno == errno.ENOENT:
# The path do not exist return an empty list
Expand Down