devai 0.5.12

Command Agent runner to accelerate production coding with genai.
1
2
3
4
5
6
7
8
9
10
11
//! Common utilities for path (local file path only) manipulation.
//! This is the beginning of the Unixy v.s. Windows os_normalization support

use std::path::Path;

/// Determine if the path is root based local path or not.
/// Simple `/` for unix and on Windows, do the `..:\` or `..:/` (sometime with rust) check
pub fn is_relative(path: impl AsRef<Path>) -> bool {
	let path = path.as_ref();
	!path.is_absolute()
}