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

implement remove and rename feature for fat32 #233

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ludelion5
Copy link

Sorry for the late PR. Here is my proposal to rename and remove files in fat32.

closes #191

@ludelion5 ludelion5 changed the title feat: implement remove and rename feature for fat32, add new unit-tests implement remove and rename feature for fat32 Jul 3, 2024
Copy link
Collaborator

@deitch deitch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, this looks great, and thank you.

In terms of naming, are these meant to be restricted just to files, or any structure (files, dirs, symlinks where supported, etc.)? I would think the latter, since CLI-level commands for the above in most OSes don't care. Same for linux mv / Windows ren.

So should these be RemoveFile() and RenameFile(), or just Remove() and Rename()?

On the other hand, in keeping with golang style, maybe these should parallel and be Remove() and RemoveAll() and [Rename()](https://pkg.go.dev/os#Rename]?

@ludelion5
Copy link
Author

Thanks for the feedback. I will look into your request and test, if the implementation will also work for symlinks and directories. If so, its a good idea to stick to your suggested naming-scheme.

Additionally I can check if the RemoveAll is easy to implement, I have to see if I can spare enough time for that feature.

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

Successfully merging this pull request may close these issues.

Support to remove files
2 participants