start to work on nextsyncignore

This commit is contained in:
grimhilt
2023-06-16 17:20:22 +02:00
parent 49d83c2900
commit 198def6a83
4 changed files with 152 additions and 0 deletions

View File

@@ -58,3 +58,15 @@ pub fn objects() -> Option<PathBuf> {
}
None
}
pub fn nextsyncignore() -> Option<PathBuf> {
if let Some(mut path) = nextsync_root() {
path.push(".nextsyncignore");
if path.exists() {
return Some(path);
} else {
return None;
}
}
None
}