Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ All notable changes to the `rbackup` project will be documented in this file.

---

## [v0.3.1] - 2025-09-12

### 🚀 Improvements

- Cleaning the screen in case the copy message took more than one row in output
- Changed the output message when copying to correct punctuation

### 🔧 Code Cleanup

- Deleted delay between one copy and the next one
- Deleted unused create imports

---

## [v0.3.0] - 2025-09-10

### 🚀 Features
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rbackup"
version = "0.3.0"
version = "0.3.1"
edition = "2021"
license = "MIT"
description = "Incremental, cross-platform and multithreaded backup tool written in Rust"
Expand Down
2 changes: 1 addition & 1 deletion src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub fn draw_ui(copied: f32, progress_row: u16, total: f32, msg: &Messages) {

let bar = format!("[{}{}]", "█".repeat(filled), "░".repeat(empty));
let progress_line = format!(
"{}: file {}/{} ({:.0}%) {}",
"{} file {}/{} ({:.0}%) {}",
msg.copy_progress, copied as usize, total as usize, percent, bar
);

Expand Down
11 changes: 7 additions & 4 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ use std::{
atomic::{AtomicUsize, Ordering},
Arc, Mutex,
},
thread::sleep,
time::Duration,
};
use walkdir::WalkDir;

Expand Down Expand Up @@ -125,6 +123,13 @@ pub fn copy_incremental(
}
};

execute!(
stdout(),
MoveTo(0, progress_row - 2),
Clear(ClearType::CurrentLine),
ResetColor
)?;

execute!(
stdout(),
MoveTo(0, progress_row - 3),
Expand All @@ -144,8 +149,6 @@ pub fn copy_incremental(
total_files as f32,
msg,
);

sleep(Duration::from_millis(40));
}

Ok((
Expand Down
Loading