include/CommonUtil.hpp
static inline void listLocalRecursive(const std::string &localDirectory, FileList &fileList, FileFeedBackFn localFileFeedbackFn = nullptr)
    {
        for (auto directoryEntry : std::filesystem::recursive_directory_iterator{localDirectory})
        {
            fileList.push_back(directoryEntry.path().string());
            if (localFileFeedbackFn)
            {
                localFileFeedbackFn(directoryEntry.path().string());
            }
        }
    }
//
// Recursively parse a local directory and produce a list of files. (static for moment)
//
Recursively parse a local directory and produce a list of files. (static for moment)
Recursively parse a local directory and produce a list of files . ( static for moment )
static inline void listLocalRecursive(const std::string &localDirectory, FileList &fileList, FileFeedBackFn localFileFeedbackFn = nullptr)
    {
        for (auto directoryEntry : std::filesystem::recursive_directory_iterator{localDirectory})
        {
            fileList.push_back(directoryEntry.path().string());
            if (localFileFeedbackFn)
            {
                localFileFeedbackFn(directoryEntry.path().string());
            }
        }
    }
static inline void listLocalRecursive ( const std :: string & localDirectory , FileList & fileList , FileFeedBackFn localFileFeedbackFn = nullptr ) { for ( auto directoryEntry : std :: filesystem :: recursive_directory_iterator { localDirectory } ) { fileList . push_back ( directoryEntry . path ( ) . string ( ) ) ; if ( localFileFeedbackFn ) { localFileFeedbackFn ( directoryEntry . path ( ) . string ( ) ) ; } } }
Recursively parse a local directory and produce a list of files.
Recursively parse a local directory and produce a list of files .