FileLocator.GetFileFromRoot

Returns the absolute path of a filename contained within the root directory.

Example

var fileLocator = new FileLocator("http://localhost:23456/", "modules"); var absoluteFilename = fileLocator.GetFileFromRoot("some-file.js"); alert(absoluteFilename); // Will output "http://localhost:23456/some-file.js"

(String) GetFileFromRoot(relativeFilename(String) The relative filename required, relative from the rootDirectory )

Param

  • relativeFilename

    (String)

    The relative filename required, relative from the rootDirectory

Return

  • (String)

    absolute path for relative file/path