Skip to content
/ FT_ls Public

FT_ls - 2019 - C

Notifications You must be signed in to change notification settings

fwmoor/FT_ls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 

Repository files navigation

FT_ls - C - 2019

FT_ls is a recreation of the unix function, ls.

WeThinkCode:

Mandatory: 100/100
Bonus: 14/25
Peers: 113% (avg)

Total: 113/125

Installation:

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:

make

Usage:

./ft_ls [-AGRaflnprt1] [file ...]  

Flags:

-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.

Disclaimer:

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.

Helpers

Mike - Faster reading.
Zia - Bonuses and long formatting.
Nolin - Sorting and error checks.
Marnus - Mallocing and freeing.

Releases

No releases published

Packages

No packages published