29#ifndef NOM_SYSTEM_WINDOWS_WIN_FILE_HPP
30#define NOM_SYSTEM_WINDOWS_WIN_FILE_HPP
41#include "nomlib/config.hpp"
42#include "nomlib/system/IFile.hpp"
47class WinFile:
public IFile
56 const std::string
extension (
const std::string& file );
61 int32
size(
const std::string& file_path );
66 bool is_dir(
const std::string& file_path );
68 bool is_file(
const std::string& file_path );
76 bool exists(
const std::string& file_path );
87 const std::string
path(
const std::string& dir_path );
105 const std::string
basename (
const std::string& filename );
115 std::vector<std::string>
read_dir(
const std::string& dir_path );
224 bool mkfile(
const std::string&
path );
std::vector< std::string > read_dir(const std::string &dir_path)
Get a list of file entries within a directory.
bool set_path(const std::string &path)
const std::string extension(const std::string &file)
bool mkdir(const std::string &path)
Create a directory entry.
const std::string user_home_path(void)
Get the current user's home directory path.
std::string env(const std::string &path)
Get the value of an environment variable.
nom::size_type num_files(const std::string &path)
Get the total number of files in a directory.
const std::string user_documents_path(void)
bool is_dir(const std::string &file_path)
Test for the existence of a directory.
bool recursive_mkdir(const std::string &path)
Create directories recursively.
const std::string path(const std::string &dir_path)
Extract the directory portion of a pathname.
bool rmdir(const std::string &path)
Remove a directory entry.
const std::string system_path(void)
Get the platform-defined system path.
const std::string resource_path(const std::string &identifier="\0")
Get the path to the Resources folder.
std::string currentPath(void)
const std::string basename(const std::string &filename)
const std::string user_app_support_path(void)
int32 size(const std::string &file_path)
bool exists(const std::string &file_path)