update comments and unexport some fields

Former-commit-id: 716d6d7e7a1e3c676dbc4a56d1576eee1aabb0a3
This commit is contained in:
Henrique Dias
2017-06-25 10:52:34 +01:00
parent f3c8ea21e6
commit 5ed0527092
8 changed files with 71 additions and 38 deletions

View File

@@ -41,7 +41,7 @@ func GetInfo(url *url.URL, c *FileManager, u *User) (*FileInfo, error) {
i.VirtualPath = strings.TrimPrefix(i.VirtualPath, "/")
i.VirtualPath = "/" + i.VirtualPath
i.Path = u.Scope + i.VirtualPath
i.Path = u.scope + i.VirtualPath
i.Path = filepath.Clean(i.Path)
info, err := os.Stat(i.Path)