diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-12-04 14:17:51 -0800 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-12-04 14:17:51 -0800 |
commit | 861897dd86ca96410b1c11a8a9cc3086bbcb054f (patch) | |
tree | 28aeeca29c0b40e3614adb15770cbc6bcd373887 /src/base/fs/exists.c | |
parent | 12e09f9f85ac48ff891adf92f3b2c9a5fea27273 (diff) |
chore(rm): removed small os package. moved functions to filesystem
Diffstat (limited to 'src/base/fs/exists.c')
-rw-r--r-- | src/base/fs/exists.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/base/fs/exists.c b/src/base/fs/exists.c new file mode 100644 index 0000000..1841a41 --- /dev/null +++ b/src/base/fs/exists.c @@ -0,0 +1,7 @@ +#include "internal.h" + +int +fs·exists(byte *path, int flag) +{ + return access(path, flag) == 0; +} |