Set up CI for backend

This commit is contained in:
Brian Bowman
2022-07-11 04:06:05 -05:00
parent 4fc90ee333
commit 51d00add22
2 changed files with 52 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ pub fn dir_delete(path: &str) {
#[tauri::command]
pub fn copy_file(path: String, new_path: String) -> bool {
let filename = &path.split("/").last().unwrap();
let filename = &path.split('/').last().unwrap();
let mut new_path_buf = std::path::PathBuf::from(&new_path);
// If the new path doesn't exist, create it.