datawire / go-fuseftp

User space file system for FTP
Apache License 2.0
3 stars 5 forks source link

Add ability to mount everything read-only. #9

Closed thallgren closed 18 hours ago

thallgren commented 1 day ago

Adds a new read-only flag that prevents the fuseftp client from making any kind of modifications to the mounted file system.

The winfsp fuse implementation doesn't provide a "ro" option, so this addition is implemented by letting all methods that modify the file system return an error. See https://github.com/winfsp/cgofuse/issues/15 for more info.

This is a client-only implementation. It does not require any additional features from the server.