Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not delete file when on windows 10 #116

Open
Cheng-2v opened this issue Oct 18, 2021 · 0 comments
Open

can not delete file when on windows 10 #116

Cheng-2v opened this issue Oct 18, 2021 · 0 comments

Comments

@Cheng-2v
Copy link

Cheng-2v commented Oct 18, 2021

when minio server run on windows 10, when execute command python manage.py collectstatic -c, It can not remove already existing file. because the object_name contains \\ dobule backslash. replace \\ with \, the file can delete successfully. or override the method delete() of class MinioStaticStorage . as below shown.

class CustomMinioStaticStorage(MinioStaticStorage): def delete(self, name: str) -> None: name = name.replace('\\', '/') super().delete(name)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant