Skip to content

Commit f8baa0b

Browse files
committed
Hofix -- Cast PurePosixPath to string
1 parent 42dc7ed commit f8baa0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

s3file/middleware.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def get_files_from_storage(paths):
3030
for path in paths:
3131
path = pathlib.PurePosixPath(path)
3232
try:
33-
f = storage.open(path.relative_to(storage.location))
33+
f = storage.open(str(path.relative_to(storage.location)))
3434
f.name = path.name
3535
yield f
3636
except (OSError, ValueError):

0 commit comments

Comments
 (0)