Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

nezhafan
Copy link
Contributor

@nezhafan nezhafan commented Mar 12, 2025

Optimization 1: Use filepath.Dir once instead.
Optimization 2: Modify the acquisition of mode, which will be more intuitive.
Question: I think it is unnecessary to use os.Chmod every time here, but I don't have a better way to solve it, because it need add the os.Stat function and what should you do if you encounter different permissions

@appleboy appleboy added this to the v1.11 milestone Mar 18, 2025
@appleboy appleboy merged commit a4baac6 into gin-gonic:master Mar 18, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants