Skip to content

FileSystemManager.getFileInfo ​

JS
    FileSystemManager.getFileInfo(Object object)

Gets the file information of a local temporary file or a local user file

Parameters

  • Object object: Input parameters. See the table below for details.

object properties:

PropertyValue TypeRequiredDescription
filePathstringYesPath of the file to read
successfunctionNoCallback for a successful call. See the table below for details.
failfunctionNoCallback for a failed call
completefunctionNoCallback for when the call ends

Parameters of the success callback

  • Object res: Returns file information

res properties:

PropertyValue TypeDescription
sizenumberFile size, in bytes