OS-backed FileSystem / RepoFileSystem implementations (gix-fs OS impl)
Dependencies
pub struct OsFs { // private fields}
impl FileSystem for OsFs
fn mkdir_p(_self : OsFs, path : String) -> Unit raise @mizchi/bit_object.GitErrorGitError
fn remove_dir(_self : OsFs, path : String) -> Unit raise @mizchi/bit_object.GitErrorGitError
fn remove_file(_self : OsFs, path : String) -> Unit raise @mizchi/bit_object.GitErrorGitError
fn write_file(_self : OsFs, path : String, content : Bytes) -> Unit raise @mizchi/bit_object.GitErrorGitError
fn write_string(_self : OsFs, path : String, content : String) -> Unit raise @mizchi/bit_object.GitErrorGitError
impl RepoFileSystem for OsFs
fn is_dir(_self : OsFs, path : String) -> Bool
fn is_file(_self : OsFs, path : String) -> Bool
fn mtime(self : OsFs, path : String) -> (Int, Int) raise @mizchi/bit_object.GitErrorGitError
fn read_file(_self : OsFs, path : String) -> Bytes raise @mizchi/bit_object.GitErrorGitError
fn readdir(_self : OsFs, path : String) -> Array[String] raise @mizchi/bit_object.GitErrorGitError
fn OsFs::new() -> OsFs
Install
Powered by MoonBit
© 2026 mooncakes.io