Core Library  1.7.0.0
Library containing core utilities and tools for threading, networking, logging, INI and CSV file management etc.
FileUtils.h File Reference

File containing declarations relating various file utilities. More...

#include <string>
#include <list>
#include "CoreLibraryDllGlobal.h"
#include "Platform/PlatformDefines.h"

Go to the source code of this file.

Namespaces

 core_lib
 The core_lib namespace.
 
 core_lib::file_utils
 The file_utils namespace.
 

Enumerations

enum  core_lib::file_utils::eCopyDirectoryOptions { core_lib::file_utils::eCopyDirectoryOptions::failIfTargetExists, core_lib::file_utils::eCopyDirectoryOptions::continueIfTargetExists }
 Copy directory options enumeration. More...
 

Functions

bool CORE_LIBRARY_DLL_SHARED_API core_lib::file_utils::FindFileRecursively (const std::wstring &dirPath, const std::wstring &fileName, std::wstring &pathFound, bool includeFileName=true)
 Find the common root path of 2 paths. More...
 
std::wstring CORE_LIBRARY_DLL_SHARED_API core_lib::file_utils::FindCommonRootPath (const std::wstring &path1, const std::wstring &path2)
 Find the common root path of 2 paths. More...
 
void CORE_LIBRARY_DLL_SHARED_API core_lib::file_utils::CopyDirectoryRecursively (const std::wstring &source, const std::wstring &target, eCopyDirectoryOptions options=eCopyDirectoryOptions::continueIfTargetExists)
 Recursively copy one directory and its contents to another location. More...
 
std::list< std::wstring > CORE_LIBRARY_DLL_SHARED_API core_lib::file_utils::ListDirectoryContents (const std::wstring &path, const std::wstring &extMatch=L"")
 List of regular files in the specified directory. More...
 
std::list< std::wstring > CORE_LIBRARY_DLL_SHARED_API core_lib::file_utils::ListSubDirectories (const std::wstring &path)
 List of immediate sub-directories in the specified directory. More...
 

Detailed Description

File containing declarations relating various file utilities.