Skip to content
Snippets Groups Projects
Commit 420f27bb authored by nfontrod's avatar nfontrod
Browse files

src/list.rs: usage of check_path

parent 25f5655e
No related branches found
No related tags found
No related merge requests found
use crate::init;
use crate::commit;
use std::process::{exit, Command};
/// List the content of the borg archive
......@@ -14,7 +14,7 @@ pub fn borg_list(first: i32, last: i32, archive: &str) {
if last != 0 {
args.push_str(&format!("--last {} ", last));
}
let (borg_path, _) = init::get_borg_folder();
let (borg_path, _) = commit::check_path();
let mut bp: String = String::from("");
if archive != "" {
bp.push_str(&format!("{}::{}", borg_path.to_str().unwrap(), archive));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment