pub struct PathResolver;Expand description
Path resolver for cross-platform storage paths
Implementations§
Source§impl PathResolver
impl PathResolver
Sourcepub fn resolve_global_path() -> StorageResult<PathBuf>
pub fn resolve_global_path() -> StorageResult<PathBuf>
Resolve the global storage path based on OS and environment
Priority:
- RICECODER_HOME environment variable
- ~/Documents/.ricecoder/ (primary)
- ~/.ricecoder/ (fallback if Documents doesn’t exist)
Sourcepub fn resolve_project_path() -> PathBuf
pub fn resolve_project_path() -> PathBuf
Resolve the project storage path (./.agent/)
Sourcepub fn expand_home(path: &Path) -> StorageResult<PathBuf>
pub fn expand_home(path: &Path) -> StorageResult<PathBuf>
Expand ~ in paths to home directory
Auto Trait Implementations§
impl Freeze for PathResolver
impl RefUnwindSafe for PathResolver
impl Send for PathResolver
impl Sync for PathResolver
impl Unpin for PathResolver
impl UnwindSafe for PathResolver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more