FileLocator.GetFileFromModule

Returns the absolute path of a filename contained within a module's 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) GetFileFromModule(relativeFilename(String) The relative filename required, relative from the modules root directory , moduleName(String) The name of the module to use when getting the relative file )

Param

  • relativeFilename

    (String)

    The relative filename required, relative from the modules root directory

  • moduleName

    (String)

    The name of the module to use when getting the relative file

Return

  • (String)

    absolute path for relative file/path