Luna/libos/include/os/FileSystem.h

24 lines
488 B
C
Raw Normal View History

2023-04-13 16:33:04 +00:00
#pragma once
#include <luna/Result.h>
#include <luna/StringView.h>
#include <sys/types.h>
namespace os
{
namespace FileSystem
{
bool exists(StringView path);
bool is_directory(StringView path);
Result<void> create_directory(StringView path, mode_t mode);
Result<void> remove(StringView path);
Result<String> working_directory();
Result<String> home_directory();
2023-04-18 16:46:19 +00:00
Result<void> change_directory(StringView path);
2023-04-13 16:33:04 +00:00
}
}