ug4
file_util_win.cpp File Reference
#include <windows.h>
#include <direct.h>
#include <stdlib.h>
#include <stdio.h>
#include "shlobj.h"
#include "common/util/file_util.h"
#include "common/error.h"
#include "common/log.h"
#include "common/profiler/profiler.h"

Namespaces

 ug
 the ug namespace
 

Macros

#define _WIN32_IE   0x0501
 

Functions

UG_API void ug::ChangeDirectory (std::string dir)
 Changes the current directory. More...
 
UG_API bool ug::CreateDirectory (const char *directory)
 Creates a directory. More...
 
UG_API bool ug::CreateDirectory (const char *directory, int mode)
 Creates a directory. More...
 
UG_API bool ug::CreateDirectoryTMP (const char *directory)
 Creates a directory. More...
 
std::string ug::CurrentWorkingDirectory ()
 
UG_API bool ug::DirectoryExists (const char *dirname)
 Checks the existence of a given directory. More...
 
UG_API size_t ug::FileSize (const char *filename)
 Returns size of the specified file in bytes. More...
 
UG_API bool ug::GetDirectoriesInDirectory (std::vector< std::string > &dirsOut, const char *dir)
 Returns a list of all directories in a directory. More...
 
UG_API bool ug::GetFilesInDirectory (std::vector< std::string > &filesOut, const char *dir)
 Returns a list of all files in a directory. More...
 
UG_API std::string ug::GetTmpPath ()
 Returns a path to which an application may write temporary files. More...
 

Macro Definition Documentation

◆ _WIN32_IE

#define _WIN32_IE   0x0501