Simple implementation of FAT file system
cmake -S . -B build && cmake --build build
CLI executable will be inside build
directory.
To run it execute:
./build/cli
cd build
ctest
help
- show this messageexit
- exit the programclear
- clear the screenmakefs <path> <size> <cluster_size>
- create a new file systemopenfs <path>
- open an existing file systemfsinfo
- show file system infodirname <path>
- get the directory portion of a pathnamebasename <path>
- get the filename portion of a pathnamepwd
- print current working directoryls [-l]
- list directory contentsstat <path>
- print file metadatacat <path>
- print file contentsmkdir <path>
- create a directorycd <path>
- change the working directorytouch <path>
- create a filermdir <path>
- remove a directoryrm [-r] <path>
- remove directory entriescp [-r] <source> <destination>
- copy files and directoriesmv [-r] <source> <destination>
- move files and directoriesimport <host_path> <fs_path>
- import a file from the host file systemexport <fs_path> <host_path>
- export a file to the host file system