- ls: defaults to showing real directory size 1 level deep instead of the block size. default sorting by last modified time.
- f: multi threaded find. recursive by default. supports simple patterns like
?
,*
(not[]
classes). - cp: multi threaded copy. mimics the unix
cp
in behavior. - new: one command for creating a file or a dir (
-d
) in the pwd. - size: total size of a directory. basically multi-threaded
du -sh
.
Doesn't support unicode (yet).
Create executable
make
Install with the command name fs
make install
Run tests
make test
-
Build a cli parser
-
Add and configure a test runner
fs .
- prints out the files, directories of the current (or any) directory. defaults to list view. has human readable sizes and permissions and date modified. default sorted by date modified. has the actual directory size instead of the block size. shows hidden files by default.
fs . -s -a
- same as above but -s sorts by size and -a sorts alphabetically
fs f . --file "hello.c"
- means find and print full paths of any file in the current directory with name containing the string "hello.c". recursive by default. the name can also be a pattern like "*.mp4" etc. maybe make search multi threaded??
fs f . --file "hello.c" -nr
- nr means no recursion so only search the top-level dir
fs cp <source> <destination>
- copy from source to destination. if destination don't exist it creates one. source can be file or directory
fs new "file.txt"
- creates a file named "file.txt" in the current directory
fs new -d "my_dev"
- creates a directory named "my_dev" in the current directory
fs size .
- gives the total space occupied on the disk by the current directory or file