Fantom

 

const class

util::PathEnv

sys::Obj
  sys::Env
    util::PathEnv

PathEnv is a simple implementation of a Fantom environment which uses a search path to resolve files.

Slots

findAllFilesSource

override File[] findAllFiles(Uri uri)

Search path for all versions of given file.

findAllPodNamesSource

override Str[] findAllPodNames()

Search path for all "lib/fan/*.pod" files.

findFileSource

override File? findFile(Uri uri, Bool checked := true)

Overrides sys::Env.findFile

Search path for given file.

makeSource

new make()

Constructor initializes the search path using the FAN_ENV_PATH environment variable (see sys::Env.vars).

pathSource

const File[] path

Search path of directories in priority order. The last item in the path is always the sys::Env.homeDir

tempDirSource

override const File tempDir

Overrides sys::Env.tempDir

Temp directory is always under workDir.

workDirSource

override const File workDir

Overrides sys::Env.workDir

Working directory is always first item in path.