staxman-old/src/stack/utils.rs

10 lines
198 B
Rust

use anyhow::Result;
use std::path::Path;
use tokio::fs;
use super::COMPOSE_FILE;
pub(super) async fn is_stack(dir: &Path) -> Result<bool> {
Ok(fs::try_exists(dir.join(COMPOSE_FILE)).await?)
}