1
1
mirror of https://github.com/theoludwig/libcproject.git synced 2025-05-21 23:21:15 +02:00

feat: add filesystem_remove

This commit is contained in:
2023-08-06 12:14:13 +02:00
parent ad0a460923
commit dff2836bfc
2 changed files with 15 additions and 0 deletions

View File

@ -31,6 +31,10 @@ bool filesystem_exists(string_t path) {
return access(path, F_OK) == 0;
}
int filesystem_remove(string_t path) {
return remove(path);
}
string_t filesystem_get_mimetype(string_t path) {
if (string_ends_with(path, ".html")) {
return "text/html";