FS as an interface, close #205

This commit is contained in:
Henrique Dias
2017-08-20 09:21:36 +01:00
parent 76de8e5940
commit 20818dca93
8 changed files with 64 additions and 36 deletions

View File

@@ -79,7 +79,7 @@ func GetInfo(url *url.URL, c *FileManager, u *User) (*File, error) {
i := &File{
URL: "/files" + url.String(),
VirtualPath: url.Path,
Path: filepath.Join(string(u.FileSystem), url.Path),
Path: filepath.Join(u.Scope, url.Path),
}
info, err := u.FileSystem.Stat(url.Path)