Skip to content

can not delete file when on windows 10 #116

@Cheng-2v

Description

@Cheng-2v

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions