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