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

Permissions for the filesystems supporting them? #221

Open
shanduur opened this issue May 29, 2024 · 1 comment
Open

Permissions for the filesystems supporting them? #221

shanduur opened this issue May 29, 2024 · 1 comment

Comments

@shanduur
Copy link

shanduur commented May 29, 2024

Hi! I was trying to add go-diskfs into spf13/afero, and found it quite interesting that there is no control over file/dir permissions. I am sure SquashFS and ISO-9660 should support preserving permissions, while those could be ignored for FAT32.

@deitch
Copy link
Collaborator

deitch commented May 29, 2024

Ah, you mean in OpenFile() like here? Having it match the signature of os.OpenFile(), which has a 3rd parameter, i.e. FileMode?

You would need to update the FileSystem interface, and then each implementation, even if just a stub.

Open a PR?

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

2 participants