Go to the documentation of this file.
27 printf(
"Exploring path: %s\n", path.c_str());
32 printf(
"Found %i files:\n", (
unsigned int)lst.size());
35 it != lst.end(); ++it)
37 printf(
"name: %s\n", it->name.c_str());
38 printf(
"wholePath: %s\n", it->wholePath.c_str());
39 printf(
"isDir: %c\n", it->isDir ?
'Y' :
'N');
40 printf(
"size: %lu bytes\n", (
unsigned long)it->fileSize);
41 printf(
"-----------------------\n");
63 S =
"foo.bardotbar.too";
91 catch (std::exception& e)
93 std::cout <<
"MRPT exception caught: " << e.what() << std::endl;
98 printf(
"Untyped exception!!");
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define FILE_ATTRIB_ARCHIVE
#define FILE_ATTRIB_DIRECTORY
std::deque< TFileInfo > TFileInfoList
The list type used in "explore".
std::string getcwd()
Returns the current working directory
std::string extractFileName(const std::string &filePath)
Extract just the name (without extension) of a filename from a complete path plus name plus extension...
static void explore(const std::string &path, const unsigned long mask, TFileInfoList &outList)
The path of the directory to examine must be passed to this constructor, among the According to the f...
This namespace provides a OS-independent interface to many useful functions: filenames manipulation,...
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |