-
Notifications
You must be signed in to change notification settings - Fork 266
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
How to use WithFSConfig to specify read and write permissions that are not accessible under a folder? #1532
Comments
I don't think this is currently possible. You are able to mount a directory under the root and then specify rw access to those; e.g. /data_read, /data_write; at the moment it is not possible to mount sub-directories e.g. mount read under /data; it is a feature that has been requested though, so we may add support for it. See #1525 |
Mount the /data directory, how to specify read and write permissions to the subdirectories below it? |
you can only set rw permissions at the mount level
or
|
Thank you so much, I'm waiting for the new feature to be able to set subdirectory read and write permissions at the same time |
after #1536 arbitrary nesting will be allowed (except GOOS=js). However, I wouldn't suggest to make complex permission schemes via mounts. Other options are to set OS level permissions on the files. Later when our filesystem API stabilizes, we'll expose it and this will allow you to control access to anything without having us change FSConfig for each sort of configuration. |
#1605 allows you to do whatever you want, and includes a read-only adapter example. |
How to use WithFSConfig to specify read and write permissions that are not accessible under a folder?
for example, there are /data/read and /data/write under the /data folder, how to achieve /data/read readOnly, /data/write can be written?
The text was updated successfully, but these errors were encountered: