{"id":22211430,"url":"https://github.com/almayor/ft_ls","last_synced_at":"2026-05-02T13:35:08.167Z","repository":{"id":113056719,"uuid":"274845251","full_name":"almayor/ft_ls","owner":"almayor","description":"Recoding ls command","archived":false,"fork":false,"pushed_at":"2020-09-12T17:58:58.000Z","size":3232,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T05:44:02.392Z","etag":null,"topics":["21school","42","42school","linux","unix"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/almayor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-25T06:31:51.000Z","updated_at":"2020-09-12T17:59:01.000Z","dependencies_parsed_at":"2023-06-07T11:30:28.970Z","dependency_job_id":null,"html_url":"https://github.com/almayor/ft_ls","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/almayor/ft_ls","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almayor%2Fft_ls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almayor%2Fft_ls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almayor%2Fft_ls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almayor%2Fft_ls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/almayor","download_url":"https://codeload.github.com/almayor/ft_ls/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almayor%2Fft_ls/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32536579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T12:25:33.646Z","status":"ssl_error","status_checked_at":"2026-05-02T12:24:51.733Z","response_time":132,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["21school","42","42school","linux","unix"],"created_at":"2024-12-02T20:31:58.569Z","updated_at":"2026-05-02T13:35:08.149Z","avatar_url":"https://github.com/almayor.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ft_ls\n\n*This project is part of the official curriculum at [School 42](https://en.wikipedia.org/wiki/42_(school)).*\n\n## Disclaimer\n\u003e In [School 42](https://en.wikipedia.org/wiki/42_(school)), almost every project must be written to comply with. coding standard (also known as the \"[Norm](./docs/subjects/norme.en.pdf)\"). As a result, the implementation of certain parts may appear strange.\n \n## Overview\n\n* [Official instructions](docs/ft_ls.en.pdf)\n* The goal of this project is to practice writing extensible code with modular organization, as well as learning concepts related to Unix directory system.\n* As per instructions, the project is realised using a C library compiled during [previous projects](http://github.com/almayor/libftprintfgnl).\n* Only the following functions are allowed for the mandatory part\n\n\t* `write`\n\t* `opendir`\n\t* `readdir`\n\t* `closedir`\n\t* `stat`\n\t* `lstat`\n\t* `getpwuid`\n\t* `getgrgid`\n\t* `listxattr`\n\t* `getxattr`\n\t* `time`\n\t* `ctime`\n\t* `readlink`\n\t* `malloc`\n\t* `free`\n\t* `perror`\n\t* `strerror`\n\t* `exit`\n\n## Work\n\nThe problem is to recreate the behaviour of `ls` Linux command as closely as possible. Please note that my machine runs on *OSX Catalina  10.15.1*, so I can only guarantee that it works as expected on it.\n\n_Flags realised_\n\n* `-1`\n* `-A`\n* `-a` (mandatory)\n* `-C`\n* `-c`\n* `-d`\n* `-F`\n* `-f`\n* `-G`\n* `-h`\n* `-i` (only works in combination with `-l`)\n* `-k`\n* `-L`\n* `-l` (mandatory)\n* `-m`\n* `-n`\n* `-o`\n* `-p`\n* `-q`\n* `-R` (mandatory)\n* `-r` (mandatory)\n* `-S`\n* `-s` (only works in combination with `-l`)\n* `-T`\n* `-t` (mandatory)\n* `-u`\n* `-U`\n* `-v`\n* `-x`\n\nSupport of the following environmental variables is implemented\n\n* `BLOCKSIZE`\n* `CLICOLOR`\n* `CLICOLOR_FORCE`\n* `LSCOLORS`\n\nColors, ACL and extended attributes are all supported. Performance as tested on a very large directory with `-lR` specified is ~70% of the standard `ls`.\n\n## Build\n\nTo build executables, run\n\n```sh\ngit clone git@github.com:almayor/ft_ls.git\ncd ft_ls\ngit submodule update --init --recursive\nmake\n```\n\n## Acknowledgements\n\nI am grateful to the entire team behind School 42 and its [Moscow branch](https://21-school.ru\n), as well as to my fellow students for help and support.\n\n---\nIf you have any questions, please contact me on Github.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmayor%2Fft_ls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falmayor%2Fft_ls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmayor%2Fft_ls/lists"}