{"id":22001444,"url":"https://github.com/alshdavid/ifilesystem-rs","last_synced_at":"2025-03-23T05:27:13.610Z","repository":{"id":261542395,"uuid":"884616122","full_name":"alshdavid/ifilesystem-rs","owner":"alshdavid","description":"Filesystem Abstraction for Rust","archived":false,"fork":false,"pushed_at":"2024-11-07T04:36:25.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T12:18:33.284Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alshdavid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-07T04:29:20.000Z","updated_at":"2024-11-07T04:36:28.000Z","dependencies_parsed_at":"2024-11-07T05:29:19.243Z","dependency_job_id":null,"html_url":"https://github.com/alshdavid/ifilesystem-rs","commit_stats":null,"previous_names":["alshdavid/ifilesystem-rs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alshdavid%2Fifilesystem-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alshdavid%2Fifilesystem-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alshdavid%2Fifilesystem-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alshdavid%2Fifilesystem-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alshdavid","download_url":"https://codeload.github.com/alshdavid/ifilesystem-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245061384,"owners_count":20554563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-29T23:13:51.431Z","updated_at":"2025-03-23T05:27:13.589Z","avatar_url":"https://github.com/alshdavid.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IFileSystem Rust\n\n## File System Trait\n\nThis crate offers a trait that looks exactly like the `std::fs` interface and supplies implementations for the os filesystem and an in-memory filesystem.\n\nUseful for substituting the FileSystem in tests and benchmarks\n\n```rust\nuse ifilesystem::sync::FileSystem;\nuse ifilesystem::sync::os::OsFileSystem;\nuse ifilesystem::sync::mem::MemoryFileSystem;\n\nfn read_file(fs: \u0026dyn FileSystem) {\n  let contents = fs.read(PathBuf::from(\"/path/to/file\"))?;\n  println!(\"{}\", contents.len())\n}\n\nfn main() {\n  let os_fs = OsFileSystem::default();\n  let mem_fs = MemoryFileSystem::default();\n\n  read_file(\u0026os_fs);\n  read_file(\u0026mem_fs);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falshdavid%2Fifilesystem-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falshdavid%2Fifilesystem-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falshdavid%2Fifilesystem-rs/lists"}