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.
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.