42 school project. Recreation of the "ls" Unix command.
$ git clone
$ make
make
(this generates the binary as "ft_ls")- run ft_ls as
./ft_ls *flags* *files and folders*
as you would run the real ls
$ ./ft_ls {options} {directories}
- the check for ACL's and extended attributes is implemented -
@
and+
are displayed at the end of file permissions column if required] - special file permissions are also implemented [
sStT
] - ft_ls checks if the output is a terminal and displays stats accordingly, using the right format as real ls does
- correct display of minor, major or filesize depending on file's type
- flags that can be used with ft_ls:
-1AGSRaglort
(See the manual for the real ls for more details) - all features necessary for the accurate display of stats with the right format using any of the flags that ft_ls is able to use are implemented
using the -l flag on multiple files and folders some which do not exist or don't have read permissions available:
using the -S flag combined with -r: