#include <system_utility.h>
|
static bool | IsExists (const std::string &path) |
| Determine if the file or directory exists. More...
|
|
static bool | IsDirectory (const std::string &path) |
| Determine if the path is a directory. More...
|
|
static bool | CreateDirectory (const std::string &path) |
| Try to create a directory. More...
|
|
static bool | GetFileSize (const std::string &path, unsigned int *size) |
| Get the size of a file. More...
|
|
static bool | CopyFile (const std::string &src, const std::string &dst, bool is_overwrite=true) |
| Copy the file. More...
|
|
static void | GetFilesInFolderRecursive (const std::string &folder, const std::string &ext, std::vector< std::string > *ret) |
| get list of files end with ext in folder. More...
|
|
static void | GetFilesInFolder (const std::string &folder, const std::string &ext, std::vector< std::string > *ret) |
| get list of files end with ext in folder. More...
|
|
static void | GetFoldersInFolder (const std::string &folder, std::vector< std::string > *ret) |
| Get list of folders in folder. More...
|
|
◆ CopyFile()
static bool apollo::localization::msf::system::CopyFile |
( |
const std::string & |
src, |
|
|
const std::string & |
dst, |
|
|
bool |
is_overwrite = true |
|
) |
| |
|
static |
◆ CreateDirectory()
static bool apollo::localization::msf::system::CreateDirectory |
( |
const std::string & |
path | ) |
|
|
static |
Try to create a directory.
◆ GetFilesInFolder()
static void apollo::localization::msf::system::GetFilesInFolder |
( |
const std::string & |
folder, |
|
|
const std::string & |
ext, |
|
|
std::vector< std::string > * |
ret |
|
) |
| |
|
static |
get list of files end with ext in folder.
- Parameters
-
<ext> | should be .jpg instead of jpg. |
◆ GetFilesInFolderRecursive()
static void apollo::localization::msf::system::GetFilesInFolderRecursive |
( |
const std::string & |
folder, |
|
|
const std::string & |
ext, |
|
|
std::vector< std::string > * |
ret |
|
) |
| |
|
static |
get list of files end with ext in folder.
- Parameters
-
<ext> | should be .jpg instead of jpg. |
◆ GetFileSize()
static bool apollo::localization::msf::system::GetFileSize |
( |
const std::string & |
path, |
|
|
unsigned int * |
size |
|
) |
| |
|
static |
◆ GetFoldersInFolder()
static void apollo::localization::msf::system::GetFoldersInFolder |
( |
const std::string & |
folder, |
|
|
std::vector< std::string > * |
ret |
|
) |
| |
|
static |
Get list of folders in folder.
◆ IsDirectory()
static bool apollo::localization::msf::system::IsDirectory |
( |
const std::string & |
path | ) |
|
|
static |
Determine if the path is a directory.
◆ IsExists()
static bool apollo::localization::msf::system::IsExists |
( |
const std::string & |
path | ) |
|
|
static |
Determine if the file or directory exists.
The documentation for this class was generated from the following file: