directory

File::directory

Returns the directory the file is into.

Declaration

static std::string directory(const std::string& filePath);

Parameters

Name

Type

Description

filePath

const std::string&

The path to the file to get the directory of.

Returns

The file’s directory, without the filename.