#include "os/os.h"
#include "os_common.h"
#include "base/panic.h"
#include "base/util.h"
#include <sys/stat.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
Go to the source code of this file.
◆ os_cwd_get_string()
STA_DECL size_t os_cwd_get_string |
( |
char * |
buffer, |
|
|
size_t |
size |
|
) |
| |
Definition at line 93 of file fs.c.
◆ os_dir_create()
STA_DECL os_error_t os_dir_create |
( |
const char * |
path | ) |
|
check if a directory exists
- Parameters
-
path | the path to the directory to check |
- Returns
- an error if the directory could not be checked
- Return values
-
eOsSuccess | if the directory was created |
eOsExists | if the directory already exists |
Definition at line 29 of file fs.c.
◆ os_dir_delete()
STA_DECL os_error_t os_dir_delete |
( |
const char * |
path | ) |
|
delete a directory
- Parameters
-
path | the path to the directory to delete |
- Returns
- an error if the directory could not be deleted
Definition at line 52 of file fs.c.
◆ os_dirent_type()
get the type of a paths inode entry
- Parameters
-
path | the path to the inode entry to check |
- Returns
- the type of the inode entry
Definition at line 65 of file fs.c.
◆ os_file_delete()
STA_DECL os_error_t os_file_delete |
( |
const char * |
path | ) |
|
delete a file
- Parameters
-
path | the path to the file to delete |
- Returns
- an error if the file could not be deleted
Definition at line 16 of file fs.c.