https://github.com/sidvishnoi/filesystem-simulation
A Hierarchical Filesystem simulation in C++
https://github.com/sidvishnoi/filesystem-simulation
filesystem filesystem-simulation
Last synced: about 2 months ago
JSON representation
A Hierarchical Filesystem simulation in C++
- Host: GitHub
- URL: https://github.com/sidvishnoi/filesystem-simulation
- Owner: sidvishnoi
- License: mit
- Created: 2017-04-12T07:19:39.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-25T15:38:43.000Z (over 7 years ago)
- Last Synced: 2025-03-20T14:48:03.486Z (about 2 months ago)
- Topics: filesystem, filesystem-simulation
- Language: C++
- Size: 18.6 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changeDir.cpp
- License: LICENSE
Awesome Lists containing this project
README
> A Hierarchical Filesystem simulation in C++.
This is a project I made during my Masters at Computer Applications course at Dept. of Computer Science, university of Delhi.
> See also: https://github.com/sidvishnoi/filesystem-assignment (Teaching material based on this assignment) : A file handling assignment made to teach some ideas about file systems and gain user's experience in C++ file handling.
The program lets you create a filesystem as a file and allows you to do file/directory operations in a Linux like terminal interface.
See `help.txt` for a list of available commands.
How to use:
```
$ make
$ ./filesystem FILE_SYSTEM_TITLE FILE_SYSTEM_SIZE_IN_MiB
```It creates a binary file (using `fstream`) inside which files, directories and file/dir entries are created in binary form.
It allows you to create files, create hierarchical directories, delete files and (attempt to) recover deleted files, along with operations like list directory, print directory tree, print working directory, change directory. See `help.txt` for a complete list of commands, or use the inbuilt `help` command in program.
All operations are done at sector levels.
Copyright 2017 Sid Vishnoi under MIT license.