Merge pull request #562 from rustic-rs/path-space

This commit is contained in:
aawsome 2023-04-06 19:29:20 +02:00 committed by GitHub
commit de609de161
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,7 @@ use serde_with::{serde_as, DisplayFromStr};
use super::Id;
use crate::backend::{DecryptReadBackend, FileType, RepoFile};
use crate::repository::parse_command;
#[serde_as]
#[derive(Clone, Default, Parser, Deserialize, Merge)]
@ -660,7 +661,8 @@ impl PathList {
}
pub fn from_string(sources: &str, sanitize: bool) -> Result<Self> {
Self::from_strings(sources.split_whitespace(), sanitize)
let sources = parse_command::<()>(sources)?.1;
Self::from_strings(sources, sanitize)
}
pub fn paths(&self) -> Vec<PathBuf> {