imutils-cpp
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Path Class Reference

The class helps in finding files in given dictionary and has two functions for the same. More...

#include <paths.h>

Public Member Functions

std::vector< std::string > listImages (std::string basePath, std::string contains="")
 Utility for listing all the Images in directory.
 
std::vector< std::string > listFiles (std::string basePath, std::vector< std::string > validExts={}, std::string contains="")
 Utility for listing all the Files in directory with valid extensions and containing words if any.
 

Detailed Description

The class helps in finding files in given dictionary and has two functions for the same.

Member Function Documentation

◆ listFiles()

std::vector< std::string > Path::listFiles ( std::string  basePath,
std::vector< std::string >  validExts = {},
std::string  contains = "" 
)

Utility for listing all the Files in directory with valid extensions and containing words if any.

Parameters
basePathThe directory where you want to search
validExtsList of file extensions
containsText that the filename must contain leave empty if none
Returns
Vector of Strings containing relative path of the files

◆ listImages()

std::vector< std::string > Path::listImages ( std::string  basePath,
std::string  contains = "" 
)

Utility for listing all the Images in directory.

Parameters
basePaththe directory where you want to search
containsText that the filename must contain leave empty if none
Returns
Vector of Strings containing relative path of the files

The documentation for this class was generated from the following files: