Defile.makeFilePath

A convenience function which creates a path string to a file in a specific directory.

Sometimes, a file in the write, base or user directories may need to be opened outside of the virtual file system. In those cases, it is necessary to query Defile for the path to the directory of interest and construct the fill file path. This method condenses that into one call.

Note that this function does not determine if the file exists. It only builds the path.

struct Defile
static
string
makeFilePath
(
PathType which
,
string fileName
)

Parameters

which
Type: PathType

Specifies which directory will comprise the path. Either PathType.Write or PathType.Base.

fileName
Type: string

The name of the file that will be appended to the path.

Return Value

Type: string

A relative path in the virtual file system.

Meta