AiLibrary  v1.3.0
A single-header C++ Library from Ailurus Studio
File Functions

Functions providing the ability to check files and folders. More...

Functions

INLINE bool ai::folderExists (const std::string name)
 Check if folder exists. More...
 
INLINE std::size_t ai::countLinesInFile (const std::string filename, const std::string token=std::string())
 
INLINE std::vector< std::string > ai::listFilesWithExtension (std::string path, const std::string extension, const std::string prefix=std::string(), const bool addPathToFileNames=false)
 

Detailed Description

Group of functions that checks and analyzes folders and files

Function Documentation

◆ countLinesInFile()

INLINE std::size_t ai::countLinesInFile ( const std::string  filename,
const std::string  token = std::string() 
)
Here is the call graph for this function:

◆ folderExists()

bool ai::folderExists ( const std::string  name)

This function checks if the given directory actually exists

Parameters
namePath to the folder
Returns
True if folder exists, false otherwise

◆ listFilesWithExtension()

INLINE std::vector<std::string> ai::listFilesWithExtension ( std::string  path,
const std::string  extension,
const std::string  prefix = std::string(),
const bool  addPathToFileNames = false 
)