Skip to content

About os.Chmod in SaveUploadedFile #4188

Open
@NezhaFan

Description

@NezhaFan

I submitted a PR #4181 , which has been merged. But there's one question that remains.

os.MkdirAll checks whether the directory exists, and if it exists, it does nothing. But os.Chmod does not check whether the folder permissions are the same as currently, it will cause syscall.Chmod to change permissions every time ?

after merged:
Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @NezhaFan

        Issue actions

          About os.Chmod in SaveUploadedFile · Issue #4188 · gin-gonic/gin