diff --git a/doc/AIClient-cpp-Reference.pdf b/doc/AIClient-cpp-Reference.pdf index 7c937ec..7ab7d54 100644 Binary files a/doc/AIClient-cpp-Reference.pdf and b/doc/AIClient-cpp-Reference.pdf differ diff --git a/inc/Utilities/dg_file_utilities.h b/inc/Utilities/dg_file_utilities.h index da249aa..36f452e 100644 --- a/inc/Utilities/dg_file_utilities.h +++ b/inc/Utilities/dg_file_utilities.h @@ -149,7 +149,9 @@ class FileHelper static size_t dir_size( const std::string &directory ) { size_t size{ 0 }; - for( const auto &entry : std::filesystem::recursive_directory_iterator( directory ) ) + for( const auto &entry : std::filesystem::recursive_directory_iterator( + directory, + std::filesystem::directory_options::skip_permission_denied ) ) { if( entry.is_regular_file() && !entry.is_symlink() ) size += entry.file_size(); @@ -363,7 +365,9 @@ class FileHelper std::regex pattern( regex_pattern ); // Iterate recursively over the directory - for( const auto &entry : std::filesystem::recursive_directory_iterator( path ) ) + for( const auto &entry : std::filesystem::recursive_directory_iterator( + path, + std::filesystem::directory_options::skip_permission_denied ) ) { if( !entry.is_directory() ) { @@ -391,7 +395,6 @@ class FileHelper } } - /// Set current working directory to current executable location directory /// \return original current working directory static std::string cwd2exe() diff --git a/inc/Utilities/dg_version.h b/inc/Utilities/dg_version.h index b48cf16..b090744 100644 --- a/inc/Utilities/dg_version.h +++ b/inc/Utilities/dg_version.h @@ -21,19 +21,19 @@ #define DG_VERSION_MINOR 18 #endif #ifndef DG_VERSION_REVISION - #define DG_VERSION_REVISION 1 + #define DG_VERSION_REVISION 2 #endif #ifndef DG_VERSION_FULL - #define DG_VERSION_FULL "0.18.1" + #define DG_VERSION_FULL "0.18.2" #endif #ifndef DG_GIT_REV - #define DG_GIT_REV "0f3b7b2" + #define DG_GIT_REV "731bf2f" #endif #ifndef DG_GIT_TAG #define DG_GIT_TAG "" #endif #ifndef DG_GIT_BRANCH - #define DG_GIT_BRANCH "0.18.1" + #define DG_GIT_BRANCH "0.18.2" #endif #endif // DG_GLOBAL_VERSION_H