InitFS will set the root location to store `internal/filesystem` ops files. These files are used to allow `WriteFile` to backup and rollback content. While they are transient in nature, they should still persist OS crashes / reboots, so, preferably under something like XDGData, rather than tmp.
(path string)
| 23 | // While they are transient in nature, they should still persist OS crashes / reboots, so, preferably under something |
| 24 | // like XDGData, rather than tmp. |
| 25 | func InitFS(path string) error { |
| 26 | return filesystem.SetFilesystemOpsDirectory(path) |
| 27 | } |
no test coverage detected
searching dependent graphs…