diff options
author | fxqnlr <[email protected]> | 2024-09-09 16:39:29 +0200 |
---|---|---|
committer | fxqnlr <[email protected]> | 2024-09-09 16:39:29 +0200 |
commit | d396881816cd256cb12d03deebea445cba99ea85 (patch) | |
tree | 4c0d983ecd021dd0d6fb43404a643d9f1aa29ac3 /src | |
parent | 97896023cf5b8ac9a58baaba7d0571b0cc9ff8f7 (diff) | |
download | arbs-d396881816cd256cb12d03deebea445cba99ea85.tar arbs-d396881816cd256cb12d03deebea445cba99ea85.tar.gz arbs-d396881816cd256cb12d03deebea445cba99ea85.zip |
name change
Diffstat (limited to 'src')
-rw-r--r-- | src/pathinfo.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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 |