# wx.getSavedFileList(Object object)

with Promise style call: Supported

Mini Program plugin: Not supported

Gets a list of local cache files saved under the Mini Program

# parameter

# Object object

attribute type Default values Required Introductions
success function no Interface calls the successful callback function
fail function no Interface calls failed callback functions
complete 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
fileList Array.&ltObject&gt Array of files, each one a FileItem

res.fileList Structure

attribute type Introductions
filePath string File path (Local path)
size number Local file size in bytes
createTime number Time stamp when file is saved, from 1970/01/01 08:00:00 Number of seconds to the current time

# sample code

  success (res) {