Skip to content

Commit

Permalink
removed code
Browse files Browse the repository at this point in the history
  • Loading branch information
LowPolyCat1 committed Jan 2, 2025
1 parent b04d085 commit c761aaf
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,20 +84,13 @@ pub fn run_sorting() -> Result<(), errors::custom_errors::CustomError> {
}

let new_path = new_dir.join(direntry.file_name());
// if let Err(error) = tokio::fs::rename(&path, &new_path) {
// tracing::error!("Error moving file: {:?}", error);
// // return Err(errors::custom_errors::CustomError::Unknown);
// continue;
// }
futures.push(tokio::spawn(async move {
if let Err(error) = tokio::fs::rename(&path, &new_path).await {
tracing::error!("Error moving file: {:?}", error);
} else {
tracing::info!("Moved file {:?} to {:?}", path, new_path);
}
}));

// tracing::info!("Moved file {:?} to {:?}", path, new_path);
}
Ok(())
}

0 comments on commit c761aaf

Please sign in to comment.