aboutsummaryrefslogtreecommitdiff
path: root/include/Storage.hpp
blob: bd4283cd675e156ad19fdddf83092dbf730e3dbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include "Path.hpp"

namespace QuickMedia {
    enum class FileType {
        FILE_NOT_FOUND,
        REGULAR,
        DIRECTORY
    };

    Path get_home_dir();
    Path get_storage_dir();
    int create_directory_recursive(const Path &path);
    FileType get_file_type(const Path &path);
    int file_get_content(const Path &path, std::string &result);
    int file_overwrite(const Path &path, const std::string &data);
}