Skip to content

Commit

Permalink
[ftp] Fix creating multiple intermediary directories on Windows (#824)
Browse files Browse the repository at this point in the history
  • Loading branch information
abatkins authored Feb 2, 2020
1 parent 1ba0846 commit a0c3a30
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 @@ -109,7 +109,7 @@ def disconnect(self):

def _mkremdirs(self, path):
pwd = self._connection.pwd()
path_splitted = path.split('/')
path_splitted = os.path.split(path)
for path_part in path_splitted:
try:
self._connection.cwd(path_part)
Expand Down

0 comments on commit a0c3a30

Please sign in to comment.