FileLocator.DoesFileExist

Returns a true or false based on if the filename can be found

Example

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

(Boolean) DoesFileExist(absoluteFilename(String) The absolute filename required )

Param

  • absoluteFilename

    (String)

    The absolute filename required

Return

  • (Boolean)

    true if the file exists, false if it does not