mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-06 08:07:49 +00:00
12 lines
327 B
Rust
12 lines
327 B
Rust
//! The per-project config folder (`<root>/.openidea/`).
|
|
|
|
use std::path::{Path, PathBuf};
|
|
|
|
/// Folder name under the project root.
|
|
pub const DIR: &str = ".openidea";
|
|
|
|
/// Where `rel` (e.g. `settings.toml`) is read from and written to.
|
|
pub fn path(root: &Path, rel: impl AsRef<Path>) -> PathBuf {
|
|
root.join(DIR).join(rel)
|
|
}
|