![]() |
Jetson Inference
DNN Vision Library
|
#include <string>
#include <vector>
Go to the source code of this file.
Functions | |
std::string | absolutePath (const std::string &relative_path) |
Given a relative path, resolve the absolute path based on the location of the process that calls the function. More... | |
std::string | locateFile (const std::string &path) |
Return a list of all the files in the specified directory. More... | |
std::string | locateFile (const std::string &path, std::vector< std::string > &locations) |
Locate a file from a set of locations provided by the user, in addition to common system locations such as "/opt" and "/usr/local". More... | |
bool | fileExists (const char *path, bool regularFilesOnly=false) |
Verify path and return true if the file exists. More... | |
size_t | fileSize (const char *path) |
Return the size (in bytes) of the specified file. More... | |
std::string | filePath (const std::string &filename) |
Extract the path out of the supplied string, removing the filename and extension For example, filePath("~/user/somefile.xml") would return ~/user More... | |
std::string | fileExtension (const std::string &path) |
Extract the file extension from the path. More... | |
std::string | fileRemoveExtension (const std::string &filename) |
Return the input string with the file extension removed For example, strRemoveExtension("~/user/somefile.xml") would return ~/user/somefile . More... | |
std::string | fileChangeExtension (const std::string &filename, const std::string &newExtension) |
Return the input string with a changed file extension For example, strChangeExtension("~/user/somefile.xml", "zip") would return ~/user/somefile.zip . More... | |
std::string | processPath () |
Return the absolute path that of the calling process executable, include the process executable's filename. More... | |
std::string | processDirectory () |
Return the directory that the calling process resides in. More... | |
std::string | workingDirectory () |
Return the current working directory of the calling process. More... | |