Luna/libos/include/os/FileSystem.h
apio 67e9543675
All checks were successful
continuous-integration/drone/push Build is passing
os: Add FileSystem::change_directory
2023-04-18 18:46:19 +02:00

24 lines
488 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();
Result<void> change_directory(StringView path);
}
}