tiny-shell 0.2
A mini shell project aiming to gain knowledge about Win32 and Linux API
Loading...
Searching...
No Matches
lsdir.c File Reference
#include "lsdir.h"
#include "../core/io_wrap.h"
#include "../os/operations.h"
Include dependency graph for lsdir.c:

Go to the source code of this file.

Functions

enum run_result run_lsdir (const os_char *dir)
 List files/folders in a directory.
 

Function Documentation

◆ run_lsdir()

enum run_result run_lsdir ( const os_char * dir)

List files/folders in a directory.

Definition at line 5 of file lsdir.c.

5 {
6 bool result = lsdir(dir);
7 return result ? RUN_OK : RUN_FAILED;
8}
bool lsdir(const os_char *dir)
List of files or folders in specific directory.
@ RUN_OK
Definition res.h:7
@ RUN_FAILED
Definition res.h:9

References lsdir(), RUN_FAILED, and RUN_OK.

Referenced by invoke_runner().

Here is the call graph for this function:
Here is the caller graph for this function: