Эх сурвалжийг харах

Fixed FTP showing backup vroot in ftp

TC pushbot 5 4 жил өмнө
parent
commit
8ac0ec88f4

+ 1 - 1
mod/storage/ftp/aofs.go

@@ -225,7 +225,7 @@ func (a aofs) pathRewrite(path string) (string, *fs.FileSystemHandler, error) {
 		fsHandlers := a.userinfo.GetAllFileSystemHandler()
 		fsHandlers := a.userinfo.GetAllFileSystemHandler()
 		for _, fsh := range fsHandlers {
 		for _, fsh := range fsHandlers {
 			//Create a folder representation for this virtual directory
 			//Create a folder representation for this virtual directory
-			if fsh.UUID != "tmp" {
+			if !(fsh.UUID == "tmp" || fsh.Hierarchy == "backup") {
 				os.Mkdir(a.tmpFolder+fsh.UUID, 0755)
 				os.Mkdir(a.tmpFolder+fsh.UUID, 0755)
 			}
 			}