Skip to content

GregoryKogan/file-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

file-system

GitHub License

GitHub Workflow Status (with event)

Simple implementation of FAT file system

Build

cmake -S . -B build && cmake --build build

CLI executable will be inside build directory. To run it execute:

./build/cli

Test

cd build
ctest

CLI

Commands

  • help - show this message
  • exit - exit the program
  • clear - clear the screen

  • makefs <path> <size> <cluster_size> - create a new file system
  • openfs <path> - open an existing file system
  • fsinfo - show file system info

  • dirname <path> - get the directory portion of a pathname
  • basename <path> - get the filename portion of a pathname
  • pwd - print current working directory
  • ls [-l] - list directory contents
  • stat <path> - print file metadata
  • cat <path> - print file contents
  • mkdir <path> - create a directory
  • cd <path> - change the working directory
  • touch <path> - create a file
  • rmdir <path> - remove a directory
  • rm [-r] <path> - remove directory entries
  • cp [-r] <source> <destination> - copy files and directories
  • mv [-r] <source> <destination> - move files and directories

  • import <host_path> <fs_path> - import a file from the host file system
  • export <fs_path> <host_path> - export a file to the host file system

About

Implementation of FAT file system.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published