Add sqlite for tracking build history.

This commit is contained in:
Tom Alexander
2026-02-14 22:15:09 -05:00
parent 0e0c5dac80
commit 7eb36ce0a4
16 changed files with 442 additions and 30 deletions

View File

@@ -23,10 +23,7 @@ use crate::error::CustomError;
pub(crate) async fn is_directory<D: AsRef<Path>>(dir: D) -> Result<bool, CustomError> {
let metadata = tokio::fs::metadata(dir).await;
let result = match metadata {
Ok(metadata) if metadata.is_dir() => true,
_ => false,
};
let result = matches!(metadata, Ok(metadata) if metadata.is_dir());
Ok(result)
}