Expand description
§FileSystemProvider - Read Operations
Implements FileSystemReader
for MountainEnvironment. All three functions call
Utility::PathSecurity::IsPathAllowedForAccess first, which enforces
workspace-trust rules and prevents path-traversal escapes.
§Functions
read_file_impl- validates the path is a regular file (not a directory), then reads bytes viatokio::fs::read.stat_file_impl- returns aFileSystemStatDTOwith file type flags (File / Directory / SymbolicLink bitmask), mtime, ctime, and size. Symlink detection uses a secondsymlink_metadatacall becausemetadatafollows links.Permissionsis currentlyNone; see the inline comment for the Windows / Unix implementation plan.CreationTimefalls back to0on platforms that don’t expose it (e.g. Linux).read_directory_impl- validates the path is a directory, streams entries viatokio::fs::read_dir, and classifies each entry asFile,Directory,SymbolicLink, orUnknown.
Functions§
- read_
directory_ 🔒impl - ReadDirectory operations implementation for MountainEnvironment
- read_
file_ 🔒impl - Read operations implementation for MountainEnvironment
- stat_
file_ 🔒impl - Stat operations implementation for MountainEnvironment