Core Library
Namespaces | Functions | Variables
FileSystem.cpp File Reference

FileSystem helper functions. More...

#include "Common.hpp"
#include "FileSystem.hpp"
#include "BadLogicException.hpp"
#include "StringUtils.hpp"
#include "FileSystemException.hpp"
#include "Scoped.hpp"
#include <windows.h>
#include <malloc.h>
#include <io.h>
#include <tchar.h>

Namespaces

namespace  Core
 

The Core Library namespace.


Functions

tstring Core::getTempFolder ()
 Get the folder to use for temporary files.
tstring Core::combinePaths (const tstring &lhs, const tstring &rhs)
 Combine two paths into a single path.
bool Core::pathExists (const tstring &path)
 Query if the path points to a file or folder that exists.
static void Core::localFree (tchar *buffer)
 Wrapper to invoke LocalFree on the buffer pointer.
static tstring Core::formatWin32ErrorMessage (DWORD errorCode)
 Convert the WIN32 error code into a text message.
void Core::deleteFile (const tstring &path, bool ignoreErrors)
 Delete the specified file.

Variables

const tchar Core::FOLDER_SEPARATOR = TXT('\\')

Detailed Description

FileSystem helper functions.

Author:
Chris Oldwood