USF-OS / FogOS

Other
0 stars 48 forks source link

Add tree command to user space #55

Open suhani-arora opened 1 month ago

suhani-arora commented 1 month ago

Tree command: displays the directory structure of the file system in a hierarchical format.

Plan: Recursively list directories and subdirectories in an indented tree format, showing all files and folders. It also summarizes the total number of directories and files at the end.

Add flags: ‘-L ’ to limit the depth of the tree ‘-F ’ to filter for specific file types like .txt, .s, .c, .h ‘-S’ to show the size of each file ‘-D ’ to filter files by the created or modified date

Files to be added/modified: Create user/tree.c, including the main implementation of tree command with additional utilities. Modify user/Makefile to include tree.c Modify kernel/syscall.h to ensure any new system calls are defined here Modify kernel/syscall.c to add entries to the system call table (if any new syscalls are required for retrieving file information) Modify user/user.h to add new function prototypes for syscalls/utility functions used by tree

Team: Chandana Srinivas, Suhani Arora, Riya Mathur

malensek commented 1 month ago

👍 I like it.