Luna/libos/include/os/FileSystem.h
2023-04-13 18:33:04 +02:00

22 lines
431 B
C++

#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();
}
}