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

Namespaces | Functions
FileUtils.cpp File Reference

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

`#include "FileUtils/FileUtils.h"`
`#include <algorithm>`
`#include <iterator>`
`#include <stdexcept>`
`#include <boost/filesystem.hpp>`
`#include <boost/algorithm/string/case_conv.hpp>`
`#include <boost/throw_exception.hpp>`

## Namespaces
| core_lib
| The core_lib namespace.
| core_lib::file_utils
| The file_utils namespace.

## 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 definitions relating various file utilities.