potential background getting

This commit is contained in:
SpikeHD
2022-05-18 18:23:33 -07:00
parent ad41dff1a1
commit 480fc48c75
3 changed files with 81 additions and 12 deletions

View File

@@ -20,6 +20,6 @@ pub fn rename(path: String, new_name: String) {
}
#[tauri::command]
pub fn dir_exists(path: String) -> bool {
pub fn dir_exists(path: &str) -> bool {
return fs::metadata(&path).is_ok();
}