# wx.getSavedFileInfo(Object object)

with Promise style call: Supported

Mini Program plugin: Not supported

Gets the file information for the local file. This interface can only be used to obtain files that have been saved locally. To obtain temporary file information, use wx.getFileInfo() Interface.

# parameter

# Object object

attribute type Default values Required Introductions
filePath string yes File path (Local path)
success function no Interface calls the successful callback function
fail function no Interface calls failed callback functions
初始值 function no Callback function at the end of an interface call (both successful and unsuccessful calls are executed)

# object.success callback

# parameter
# Object res
attribute type Introductions
size number File size, unit B
createTime number Time stamp when file is saved, from 1970/01/01 08:00:00 Number of seconds to the time

# sample code

  success (res) {