Use the new go 1.16 fs.FS interface?

Go 1.16 added a filesystem interface. It might be interesting to have restic use it as it might have two benefits. It would make it easier to add ways for restic to backup things other than filesystems (e.g. an http api) and might simplify testing by being able to use the new testing/fstest package.

2 Likes