1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
use PathBuf;
/// Normalize a path string to an absolute PathBuf
///
/// # Arguments
/// * `path` - The path string to normalize
///
/// # Returns
/// An absolute PathBuf
/// Ensure a directory exists, creating it if necessary
///
/// # Arguments
/// * `path` - The directory path to ensure exists
///
/// # Returns
/// Ok(()) if successful, Err(io::Error) if creation fails
/// Get the default data directory for Fortress
///
/// # Returns
/// A PathBuf pointing to the default data directory