Skip to content

akshatha2005/DSA-Mini-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

File System Simulator (Terminal-Based) A simple terminal-based File System Simulator built using C and an n-ary tree and linked list data structures. The project mimics core operations of an operating system’s file explorer—allowing users to create/delete files or folders, navigate directories, and visualize the full directory hierarchy.

Features: Create folders and files Delete folders and files Navigate into subdirectories (cd) Move to parent directory List contents of a directory (ls) Display entire file system tree Print current working directory

Data Structure: n-Ary Tree Linked list Used to represent the hierarchical structure of a file system. Each node stores: Name Type (file/folder) List of children Pointer to parent

Core Operations (ADT) createNode(name, isFile) addChild(parent, child) removeChild(parent, name, type) findChild(parent, name) changeDirectory(current, name) goToParent(current) listDirectory(current) displayTree(root)

How to Run: gcc main.c fs.c -o filesystem ./filesystem

Team: Team: CodeStruct Aadya Arvind – PES2UG24CS008 Aanya K – PES2UG24CS011 Akshatha P – PES2UG24CS048

About

This project creates a terminal-based program that simulates a simple file system. It lets users navigate directories, list contents, and create or delete files and folders. The system maintains an internal directory structure and supports basic commands for moving between and organizing folders.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages