Implement single file operations for all file systems

This commit is contained in:
Nick Craig-Wood
2014-05-05 22:17:57 +01:00
parent ca3752f824
commit 99695d57ab
9 changed files with 228 additions and 44 deletions
+9 -3
View File
@@ -18,9 +18,15 @@ var (
// Filesystem info
type FsInfo struct {
Name string // name of this fs
NewFs func(string, string) (Fs, error) // create a new file system
Config func(string) // function to call to help with config
// Name of this fs
Name string
// Create a new file system. If root refers to an existing
// object, then it should return a Fs which only returns that
// object.
NewFs func(name string, root string) (Fs, error)
// Function to call to help with config
Config func(string)
// Options for the Fs configuration
Options []Option
}