{"id":15355665,"url":"https://github.com/songquanpeng/filesystem-emulator","last_synced_at":"2026-02-25T14:04:50.597Z","repository":{"id":105034073,"uuid":"259021555","full_name":"songquanpeng/filesystem-emulator","owner":"songquanpeng","description":"Linux filesystem emulator.","archived":false,"fork":false,"pushed_at":"2021-11-24T07:05:12.000Z","size":33,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T19:28:45.692Z","etag":null,"topics":["emulator","filesystem","filesystem-emulator","linux","shell","toy-project"],"latest_commit_sha":null,"homepage":"","language":"C++","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/songquanpeng.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,"zenodo":null}},"created_at":"2020-04-26T12:11:32.000Z","updated_at":"2022-10-11T18:44:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"a28b4d5b-edf7-4a17-b552-0e6f96e84d05","html_url":"https://github.com/songquanpeng/filesystem-emulator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/songquanpeng/filesystem-emulator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songquanpeng%2Ffilesystem-emulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songquanpeng%2Ffilesystem-emulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songquanpeng%2Ffilesystem-emulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songquanpeng%2Ffilesystem-emulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/songquanpeng","download_url":"https://codeload.github.com/songquanpeng/filesystem-emulator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songquanpeng%2Ffilesystem-emulator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263468210,"owners_count":23471235,"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":["emulator","filesystem","filesystem-emulator","linux","shell","toy-project"],"created_at":"2024-10-01T12:25:09.645Z","updated_at":"2025-10-24T11:02:51.689Z","avatar_url":"https://github.com/songquanpeng.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# File System Emulator\n## Build\n```bash\ngit clone https://github.com/songquanpeng/filesystem-emulator.git\ncd filesystem-emulator\ncmake .\nmake\n```\n\n## Demo\n```bash\nubuntu@VM-0-16-ubuntu:/$ vim test.py 1\nprint(\"Hello World!\")\n\n:wq\nubuntu@VM-0-16-ubuntu:/$ ls\nINode Name\n1     test.py\nubuntu@VM-0-16-ubuntu:/$ cat test.py\nprint(\"Hello World!\")\n\nubuntu@VM-0-16-ubuntu:/$ stat test.py\nFile: /test.py\nInode: 1\nSize: 1024 B\nType: regular file\nCreate time: 1637464120\nBlock address: 1\nubuntu@VM-0-16-ubuntu:/$ df\nAvailable space: 16124 KB\nTotal block number: 16126  Used block: 2  Block size: 1024 B\nInode number: 4096  Inode size: 64 B\n```\n\n## TODO List\n- [x] Implement a basic shell for interact.\n- [x] Able to create directory.\n- [x] Able to create file.\n- [x] Able to delete directory.\n- [x] Able to delete file.\n- [x] Able to list subdirs and files in target directory.\n- [x] Able to show file content.\n- [x] Able to edit file on creating.\n- [x] Able to show directory's attributes.\n- [ ] Support relative path.\n- [x] Able to change working directory.\n- [x] Able to use all direct block addresses and indirect block address.\n- [ ] Support \".\" and \"..\".\n- [x] When creating file, fill it with random string.\n- [ ] When deleting directory, recursively delete all content in it.\n- [x] Able to copy file.\n- [x] Able to move file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsongquanpeng%2Ffilesystem-emulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsongquanpeng%2Ffilesystem-emulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsongquanpeng%2Ffilesystem-emulator/lists"}