diff options
-rw-r--r-- | Cargo.lock | 2 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/pathinfo.rs | 6 |
3 files changed, 5 insertions, 5 deletions
@@ -33,7 +33,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
33 | checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" | 33 | checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" |
34 | 34 | ||
35 | [[package]] | 35 | [[package]] |
36 | name = "arps" | 36 | name = "arbs" |
37 | version = "0.1.0" | 37 | version = "0.1.0" |
38 | dependencies = [ | 38 | dependencies = [ |
39 | "anyhow", | 39 | "anyhow", |
@@ -1,5 +1,5 @@ | |||
1 | [package] | 1 | [package] |
2 | name = "arps" | 2 | name = "arbs" |
3 | version = "0.1.0" | 3 | version = "0.1.0" |
4 | edition = "2021" | 4 | edition = "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 |