Skip to main content

file_storage/path/construct/
roots.rs

1use crate::{FolderPath, StoragePath};
2
3impl StoragePath {
4    //! Roots
5
6    /// Creates the unix root path.
7    pub fn unix_root() -> Self {
8        unsafe { Self::new("/", 1, '/') }
9    }
10}
11
12impl FolderPath {
13    //! Roots
14
15    /// Creates the unix root folder.
16    pub fn unix_root() -> Self {
17        StoragePath::unix_root().make_folder()
18    }
19}