Defile.findFilePath

Searches for a given file in the write and base directories and, if it exists, returns a path to the file.

This method first looks for the file in the write directory. If it exists, then a string containing the path "writeDir/fileName" is returned. Otherwise, it then looks for the file in the base directory and returns its path if found. If the file exists in neither directory, the method returns null.

struct Defile
static
string
findFilePath
(
string fileName
)

Parameters

fileName
Type: string

The name or relative path of a file to look for.

Return Value

Type: string

A string containing the relative path to the file in the virtual file system, or null if the file cannot be found.

Meta