FT_ls is a recreation of the unix function, ls.
Mandatory: 100/100
Bonus: 14/25
Peers: 113% (avg)
Total: 113/125
To get started, clone the FT_ls repo and go into the folder:
git clone https://github.com/FWMoor/FT_ls
cd FT_ls/FT_ls
make
./ft_ls [-AGRaflnprt1] [file ...]
-A
- Shows all files (including hidden files), but doesn't show the "." and ".." directories. (Bonus)
-G
- Shows normal files, but adds colour. (Bonus)
-R
- Shows all files recursively.
-a
- Shows all files including "." and "..".
-f
- Shows normal files, unsorted. (Bonus)
-l
- Shows files in long format.
-n
- Shows UID and GID in long format as a number. (Bonus)
-p
- Adds a '/' to the back of directory names. (Bonus)
-r
- Reverses the output.
-t
- Sorts files according to time.
Use my code at your own risk!
I've listed a few names of people that have helped me with ft_ls.
Be sure to check out their profiles when you have time.
Mike - Faster reading.
Zia - Bonuses and long formatting.
Nolin - Sorting and error checks.
Marnus - Mallocing and freeing.