A class representing a file in the filesystem.
More...
#include <Filesystem.hpp>
A class representing a file in the filesystem.
◆ File()
shkyera::File::File |
( |
std::filesystem::path |
path | ) |
|
Constructor for a File object.
- Parameters
-
path | The path to the file. |
◆ getName()
std::string shkyera::File::getName |
( |
| ) |
const |
Get the name of the file, including the extension.
- Returns
- The name of the file.
◆ getNameWithoutExtension()
std::string shkyera::File::getNameWithoutExtension |
( |
| ) |
const |
◆ getPath()
std::filesystem::path shkyera::File::getPath |
( |
| ) |
const |
Get the path to the file.
- Returns
- The path to the file.
◆ getType()
Get the type of the file.
- Returns
- The type of the file (e.g., PYTHON, IMAGE, OTHER).
◆ _path
std::filesystem::path shkyera::File::_path |
|
private |
◆ _type
The documentation for this class was generated from the following files: