summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2024-09-09 16:39:29 +0200
committerfxqnlr <[email protected]>2024-09-09 16:39:29 +0200
commitd396881816cd256cb12d03deebea445cba99ea85 (patch)
tree4c0d983ecd021dd0d6fb43404a643d9f1aa29ac3
parent97896023cf5b8ac9a58baaba7d0571b0cc9ff8f7 (diff)
downloadarbs-d396881816cd256cb12d03deebea445cba99ea85.tar
arbs-d396881816cd256cb12d03deebea445cba99ea85.tar.gz
arbs-d396881816cd256cb12d03deebea445cba99ea85.zip
name change
-rw-r--r--Cargo.lock2
-rw-r--r--Cargo.toml2
-rw-r--r--src/pathinfo.rs6
3 files changed, 5 insertions, 5 deletions
diff --git a/Cargo.lock b/Cargo.lock
index e72016e..5027c92 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -33,7 +33,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
33checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" 33checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da"
34 34
35[[package]] 35[[package]]
36name = "arps" 36name = "arbs"
37version = "0.1.0" 37version = "0.1.0"
38dependencies = [ 38dependencies = [
39 "anyhow", 39 "anyhow",
diff --git a/Cargo.toml b/Cargo.toml
index 9fc7b01..629f6a6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,5 +1,5 @@
1[package] 1[package]
2name = "arps" 2name = "arbs"
3version = "0.1.0" 3version = "0.1.0"
4edition = "2021" 4edition = "2021"
5 5
diff --git a/src/pathinfo.rs b/src/pathinfo.rs
index 5b9aa21..8b1ca2f 100644
--- a/src/pathinfo.rs
+++ b/src/pathinfo.rs
@@ -375,7 +375,7 @@ mod tests {
375 config.root = "./backup-test".to_string(); 375 config.root = "./backup-test".to_string();
376 config 376 config
377 .directories 377 .directories
378 .push("u:fx/code/proj/arps/backup-test-dir".to_string()); 378 .push("u:fx/code/proj/arbs/backup-test-dir".to_string());
379 379
380 create_dir_all("./backup-test-dir")?; 380 create_dir_all("./backup-test-dir")?;
381 let mut f = File::create("./backup-test-dir/size.txt")?; 381 let mut f = File::create("./backup-test-dir/size.txt")?;
@@ -395,12 +395,12 @@ mod tests {
395 let mut f = File::create("./backup-test-dir/content.txt")?; 395 let mut f = File::create("./backup-test-dir/content.txt")?;
396 f.write_all("unmodefied".as_bytes())?; 396 f.write_all("unmodefied".as_bytes())?;
397 397
398 let pi = PathInfo::from_path(&config, "u:fx/code/proj/arps/backup-test-dir")?; 398 let pi = PathInfo::from_path(&config, "u:fx/code/proj/arbs/backup-test-dir")?;
399 399
400 let last_backup = Backup::get_last(&config)?.unwrap(); 400 let last_backup = Backup::get_last(&config)?.unwrap();
401 for file in pi.children { 401 for file in pi.children {
402 println!("test rel: {}", file.rel_location); 402 println!("test rel: {}", file.rel_location);
403 let res = if file.rel_location == "code/proj/arps/backup-test-dir/nothing.txt" { 403 let res = if file.rel_location == "code/proj/arbs/backup-test-dir/nothing.txt" {
404 Some(last_backup.id.clone()) 404 Some(last_backup.id.clone())
405 } else { 405 } else {
406 None 406 None