Open seanaye opened 1 year ago
I am also interested in this feature. If this is desirable, I can draft a PR. If we were to split the trait between read
and write
operations, it could be worthwhile to also consider making directory operations there own trait to better support flat filesystems.
An alternative option that would avoid creating a breaking change would be to create a wrapper filesystem that blocks any undesirable method calls. The downside is that these checks would be done at runtime.
Separate the FileSystem trait and AynscFileSystem trait into
ReadOnlyFileSystem
andWriteOnlyFileSystem
.