Browse Source

Fixed folder properties bug using du

Toby Chui 1 year ago
parent
commit
def34b81ad
1 changed files with 1 additions and 1 deletions
  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() {
 			if fsh.IsLocalDrive() {
 				//Try using native syscall to grab directory size
 				//Try using native syscall to grab directory size
-				nativeSize, err := filesystem.GetDirectorySizeNative(fsh.Path)
+				nativeSize, err := filesystem.GetDirectorySizeNative(rpath)
 				if err == nil {
 				if err == nil {
 					usefallback = false
 					usefallback = false
 					filesize = nativeSize
 					filesize = nativeSize