A simple file system simulation in C++ designed to demonstrate the core concepts of how files and directories are managed in a typical operating system. This project is ideal for beginners learning about data structures, file handling, and operating system fundamentals.
- Create files and folders
- Delete files and folders
- Display file structure in hierarchical format
- Basic command simulation (like mkdir, touch, ls)
- Memory management using blocks
basic-file-system/ ├── main.cpp # Entry point of the application ├── file_system.h # Header file containing class definitions ├── file_system.cpp # Implementation of the file system logic └── README.md # Project documentation
- C++ compiler (e.g. g++)
- C++11 or above
-
Clone the repository: bash git clone https://github.com/Riddhima-sh/basic-file-system.git cd basic-file-system
-
Compile the code:
bash g++ main.cpp file_system.cpp -o filesystem
-
Run the program:
bash ./filesystem
- Trees and hierarchical data structures
- File handling
- Command parsing
- Dynamic memory management
- Object-oriented programming in C++
Riddhima Sharma
- GitHub: @Riddhima-sh
- Inspired by real-world file system behavior
- Built as a part of learning OS concepts