Project Alice
Loading...
Searching...
No Matches
simple_fs_nix.cpp File Reference
#include <dirent.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <unistd.h>
#include <codecvt>
#include <locale>
#include "simple_fs.hpp"
#include "text.hpp"
Include dependency graph for simple_fs_nix.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  simple_fs
 
namespace  simple_fs::impl
 

Functions

std::optional< file > simple_fs::open_file (unopened_file const &f)
 
void simple_fs::reset (file_system &fs)
 
void simple_fs::add_root (file_system &fs, native_string_view root_path)
 
void simple_fs::add_relative_root (file_system &fs, native_string_view root_path)
 
directory simple_fs::get_root (file_system const &fs)
 
native_string simple_fs::extract_state (file_system const &fs)
 
void simple_fs::restore_state (file_system &fs, native_string_view data)
 
bool simple_fs::impl::contains_non_ascii (native_char const *str)
 
std::vector< unopened_file > simple_fs::list_files (directory const &dir, native_char const *extension)
 
std::vector< directory > simple_fs::list_subdirectories (directory const &dir)
 
directory simple_fs::open_directory (directory const &dir, native_string_view directory_name)
 
std::optional< file > simple_fs::open_file (directory const &dir, native_string_view file_name)
 
std::optional< unopened_file > simple_fs::peek_file (directory const &dir, native_string_view file_name)
 
void simple_fs::add_ignore_path (file_system &fs, native_string_view replaced_path)
 
std::vector< native_stringsimple_fs::list_roots (file_system const &fs)
 
bool simple_fs::is_ignored_path (file_system const &fs, native_string_view path)
 
native_string simple_fs::get_full_name (unopened_file const &f)
 
native_string simple_fs::get_file_name (unopened_file const &f)
 
native_string simple_fs::get_full_name (file const &f)
 
native_string simple_fs::get_full_name (directory const &f)
 
void simple_fs::write_file (directory const &dir, native_string_view file_name, char const *file_data, uint32_t file_size)
 
file_contents simple_fs::view_contents (file const &f)
 
void simple_fs::make_directories (native_string const &path)
 
directory simple_fs::get_or_create_settings_directory ()
 
directory simple_fs::get_or_create_save_game_directory ()
 
directory simple_fs::get_or_create_root_documents ()
 
directory simple_fs::get_or_create_templates_directory ()
 
directory simple_fs::get_or_create_oos_directory ()
 
directory simple_fs::get_or_create_data_dumps_directory ()
 
directory simple_fs::get_or_create_scenario_directory ()
 
native_string simple_fs::win1250_to_native (std::string_view data_in)
 
native_string simple_fs::utf8_to_native (std::string_view data_in)
 
std::string simple_fs::native_to_utf8 (native_string_view data_in)
 
std::string simple_fs::remove_double_backslashes (std::string_view data_in)
 
native_string simple_fs::correct_slashes (native_string_view path)