ExtractDir

This function returns the directory part of a file path.

Syntax

Parameters

Returns

Returns the directory part of the specified file path.

Example

#include "Leadwerks.h"

using namespace Leadwerks;

int main(int argc, const char *argv[])
{
//Get the directory part
System::Print(FileSystem::ExtractDir("Materials/Brick/brickwall01a.mat"));

return 0;
}