Add Root List test and fs.Limited tests for single files

This commit is contained in:
Nick Craig-Wood
2014-07-31 21:35:29 +01:00
parent ff91698fb5
commit 3e27ff1b95
10 changed files with 147 additions and 38 deletions
+3 -2
View File
@@ -184,9 +184,10 @@ func Find(name string) (*FsInfo, error) {
// NewFs makes a new Fs object from the path
//
// The path is of the form service://path
// The path is of the form remote:path
//
// Services are looked up in the config file
// Remotes are looked up in the config file. If the remote isn't
// found then NotFoundInConfigFile will be returned.
func NewFs(path string) (Fs, error) {
parts := matcher.FindStringSubmatch(path)
fsName, configName, fsPath := "local", "local", path