remove comments

Signed-off-by: tommady <tommady@users.noreply.github.com>
This commit is contained in:
tommady 2025-07-16 11:54:36 +00:00
parent 776413a9f9
commit 2fa3fa2310
No known key found for this signature in database
GPG Key ID: 175B664929DF2F2F

View File

@ -415,22 +415,6 @@ fn smart_unpack(
// Rename the temporary directory to the archive name, which is output_file_path
if fs::rename(&previous_path, &new_path).is_err() {
utils::copy_dir(&previous_path, &new_path)?;
// println!("################### {:?}", e);
// if e.kind() == io::ErrorKind::CrossesDevices || e.raw_os_error() == Some(18) {
// println!("⚠️ Rename failed due to a cross-device link. Falling back to copy-and-delete.");
// // The rename failed, so we fall back to a copy and remove.
// // This is more expensive but works across devices.
// fs::copy(&previous_path, &new_path)?; // Copy the file to the new location.
// fs::symlink_metadata(path)
// println!("✅ Successfully moved file via copy-and-delete fallback.");
// Ok(())
// } else {
// // If it's a different error (e.g., permissions), we should fail.
// println!("❌ Rename failed with an unrecoverable error.");
// Err(e)
// }
};
info_accessible(format!(
"Successfully moved \"{}\" to \"{}\"",