| 19 | static StringFlag directory({"-p", "--path"}, "path to list", ""); |
| 20 | |
| 21 | static char fileTypeChar(FileType file_type) |
| 22 | { |
| 23 | switch (file_type) |
| 24 | { |
| 25 | case TYPE_FILE: |
| 26 | return ' '; |
| 27 | |
| 28 | case TYPE_DIRECTORY: |
| 29 | return 'D'; |
| 30 | |
| 31 | default: |
| 32 | return '?'; |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | int mainLs(int argc, const char* argv[]) |
| 37 | { |