You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When conducting tests, there are times when I want to create a read-only file,
But i found that there is no option available to create a read-only file.
I know there is ReadOnlyFs already, but new a fs seems unnecessary to me.
Or there might already be a way to create a read-only file.
I have tried func (m *MemMapFs) Chmod, but it seems useless.
If there are any better methods, i would appreciate to learn it.
The text was updated successfully, but these errors were encountered:
When conducting tests, there are times when I want to create a read-only file,
But i found that there is no option available to create a read-only file.
I know there is ReadOnlyFs already, but new a fs seems unnecessary to me.
I found func Create in memmap.go
and NewReadOnlyFileHandle in file.go
Will it possible to support create read-only file with adding an additional parameter to the Create function like
Or there might already be a way to create a read-only file.
I have tried
func (m *MemMapFs) Chmod
, but it seems useless.If there are any better methods, i would appreciate to learn it.
The text was updated successfully, but these errors were encountered: