tiny-shell
0.2
A mini shell project aiming to gain knowledge about Win32 and Linux API
Loading...
Searching...
No Matches
source
runner
lsdir.c
Go to the documentation of this file.
1
#include "
lsdir.h
"
2
#include "
../core/io_wrap.h
"
3
#include "
../os/operations.h
"
4
5
enum
run_result
run_lsdir
(
const
os_char *dir) {
6
bool
result =
lsdir
(dir);
7
return
result ?
RUN_OK
:
RUN_FAILED
;
8
}
io_wrap.h
run_lsdir
enum run_result run_lsdir(const os_char *dir)
List files/folders in a directory.
Definition
lsdir.c:5
lsdir.h
operations.h
lsdir
bool lsdir(const os_char *dir)
List of files or folders in specific directory.
run_result
run_result
Result of the execution of a command line.
Definition
res.h:6
RUN_OK
@ RUN_OK
Definition
res.h:7
RUN_FAILED
@ RUN_FAILED
Definition
res.h:9
Generated on Mon Jun 16 2025 14:35:16 for tiny-shell by
1.13.2