cloud backends: stat and other performance improvements

This commit is contained in:
Nicola Murino
2020-11-02 19:16:12 +01:00
parent 57bec976ae
commit 6ad4cc317c
7 changed files with 434 additions and 255 deletions

View File

@@ -5688,7 +5688,7 @@ func TestResolveVirtualPaths(t *testing.T) {
})
err := os.MkdirAll(mappedPath, os.ModePerm)
assert.NoError(t, err)
osFs := vfs.NewOsFs("", user.GetHomeDir(), user.VirtualFolders).(vfs.OsFs)
osFs := vfs.NewOsFs("", user.GetHomeDir(), user.VirtualFolders).(*vfs.OsFs)
b, f := osFs.GetFsPaths("/vdir/a.txt")
assert.Equal(t, mappedPath, b)
assert.Equal(t, filepath.Join(mappedPath, "a.txt"), f)