X-Git-Url: http://git.euphorik.ch/index.cgi?p=minecraft_web.git;a=blobdiff_plain;f=backend%2Fsrc%2Fminecraft_controller.rs;fp=backend%2Fsrc%2Fminecraft_controller.rs;h=13a3e3f55356f58386cac5bf246d5e06a3daa639;hp=f04ed24d974085fc1dbde4d832cbe0150373b602;hb=b18873a936be63f85a1f884fa86a60bfde241c02;hpb=026120042fe286bc09af4b5f38a345954d73f681 diff --git a/backend/src/minecraft_controller.rs b/backend/src/minecraft_controller.rs index f04ed24..13a3e3f 100644 --- a/backend/src/minecraft_controller.rs +++ b/backend/src/minecraft_controller.rs @@ -130,7 +130,7 @@ pub fn get_minecraft_executable_information(world_path: &str, backup_path: &str, if processes.len() >= 1 { let process = processes.first().unwrap(); - let world_size = match std::fs::metadata(world_path) { Ok(f) => f.len(), Err(_) => 0u64 }; + let world_size = match fs_extra::dir::get_size(world_path) { Ok(l) => l, Err(_) => 0u64 }; Some( MinecraftExe {