Sunshine latest
Self-hosted game stream host for Moonlight.
file_handler.cpp File Reference

Definitions for file handling functions. More...

#include <filesystem>
#include <fstream>
#include "file_handler.h"
#include "logging.h"
Include dependency graph for file_handler.cpp:

Namespaces

namespace  file_handler
 Responsible for file handling functions.
 

Functions

std::string file_handler::get_parent_directory (const std::string &path)
 Get the parent directory of a file or directory.
 
bool file_handler::make_directory (const std::string &path)
 Make a directory.
 
std::string file_handler::read_file (const char *path)
 Read a file to string.
 
int file_handler::write_file (const char *path, const std::string_view &contents)
 Writes a file.
 

Detailed Description

Definitions for file handling functions.