Skip to content

A C application that can be used to model a hierarchy of files and directories, on the command line, that provides the Linux touch, mkdir, ls, rm, rmdir, cd, tree, and pwd commands.

Notifications You must be signed in to change notification settings

florinpavelescu15/File-System-Simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pavelescu Florin, grupa 324CC

Am implementat toate functiile necesare rezolvarii cerintelor temei, respectand, in mare parte, scheletul pus la dispozitie. Pentru unele functii, am modificat tipul returnat; de asemenea, am adaugat doua functii noi, dupa cum urmeaza:

  • Functia free_file_list goleste lista de fisiere a unui director dat ca argument.
  • Functia free_dir sterge recursiv un director cu toate fisierele si subdirectoarele acestuia. Ideea pe care am avut-o pentru functia rmdir se baza pe o implementare folosind recursivitatea, dar antetul functiei rmdir nu era foarte potrivit pentru o astfel de implementare, din punctul meu de vedere. Asadar, am implementat aceasta functie auxiliara, dandu-i o signatura potrivita pentru o implementare recursiva.
  • Am modificat tipul returnat de functia pwd, din char* in void, pentru a putea folosi mai usor recursivitatea. Detalii mai amanuntite despre implementare se gasesc in comentariile din fisierul sursa tema1.c.

About

A C application that can be used to model a hierarchy of files and directories, on the command line, that provides the Linux touch, mkdir, ls, rm, rmdir, cd, tree, and pwd commands.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published