mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 06:40:54 +03:00
cloud backends: stat and other performance improvements
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user