22 lines
431 B
C
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();
|
||
|
}
|
||
|
}
|