Skip to content

Riddhima-sh/basic-file-system

Repository files navigation

Basic File System

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.

🧠 Features

  • 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

📁 Project Structure

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

🔧 Requirements

  • C++ compiler (e.g. g++)
  • C++11 or above

🚀 How to Run

  1. Clone the repository: bash git clone https://github.com/Riddhima-sh/basic-file-system.git cd basic-file-system

  2. Compile the code:

    bash g++ main.cpp file_system.cpp -o filesystem

  3. Run the program:

    bash ./filesystem

📚 Concepts Covered

  • Trees and hierarchical data structures
  • File handling
  • Command parsing
  • Dynamic memory management
  • Object-oriented programming in C++

🙋‍♀️ Author

Riddhima Sharma

🌟 Acknowledgements

  • Inspired by real-world file system behavior
  • Built as a part of learning OS concepts

About

A basic file system which is still in progress to add advance features

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages