Skip to content

Commit

Permalink
Hofix -- Cast PurePosixPath to string
Browse files Browse the repository at this point in the history
  • Loading branch information
codingjoe committed Oct 22, 2020
1 parent 42dc7ed commit f8baa0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s3file/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def get_files_from_storage(paths):
for path in paths:
path = pathlib.PurePosixPath(path)
try:
f = storage.open(path.relative_to(storage.location))
f = storage.open(str(path.relative_to(storage.location)))
f.name = path.name
yield f
except (OSError, ValueError):
Expand Down

0 comments on commit f8baa0b

Please sign in to comment.