Преглед изворни кода

Fixed folder properties bug using du

Toby Chui пре 1 година
родитељ
комит
def34b81ad
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      file_system.go

+ 1 - 1
file_system.go

@@ -2462,7 +2462,7 @@ func system_fs_getFileProperties(w http.ResponseWriter, r *http.Request) {
 
 			if fsh.IsLocalDrive() {
 				//Try using native syscall to grab directory size
-				nativeSize, err := filesystem.GetDirectorySizeNative(fsh.Path)
+				nativeSize, err := filesystem.GetDirectorySizeNative(rpath)
 				if err == nil {
 					usefallback = false
 					filesize = nativeSize