|
@@ -2543,14 +2543,16 @@ func system_fs_handleList(w http.ResponseWriter, r *http.Request) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- rawsize := fshAbs.GetFileSize(v)
|
|
|
- modtime, _ := fshAbs.GetModTime(v)
|
|
|
+ fstat, _ := fshAbs.Stat(v)
|
|
|
+
|
|
|
+ rawsize := fstat.Size()
|
|
|
+ modtime := fstat.ModTime().Unix()
|
|
|
thisvPath, _ := fshAbs.RealPathToVirtualPath(v, userinfo.Username)
|
|
|
thisFile := filesystem.FileData{
|
|
|
Filename: filepath.Base(v),
|
|
|
Filepath: currentDir + filepath.Base(v),
|
|
|
Realpath: v,
|
|
|
- IsDir: fsh.FileSystemAbstraction.IsDir(v),
|
|
|
+ IsDir: fstat.IsDir(),
|
|
|
Filesize: rawsize,
|
|
|
Displaysize: filesystem.GetFileDisplaySize(rawsize, 2),
|
|
|
ModTime: modtime,
|