This commit is contained in:
2023-03-11 15:44:04 +08:00
parent b58d6eed24
commit 747ded460a
+1 -1
View File
@@ -85,7 +85,7 @@ func listDir(dir string) ([]FileInfo, error) {
} }
Href := filepath.Join(dir, name) Href := filepath.Join(dir, name)
Href = strings.Replace(Href, filepath.Join(rootPath), "", -1) //Href = strings.Replace(Href, filepath.Join(rootPath), "", -1)
size := fileInfo.Size() size := fileInfo.Size()
formattedSize := formatFileSize(size) formattedSize := formatFileSize(size)