Manage Folder
Manage the specified folder
FOLDER
Input Object
Output Object
API
// List all files in the specified folder
let files = await api.files()
console.log(files)
// List the folders in the specified folder
let folders = await api.folders()
console.log(folders)
// Read various timestamp information, such as file creation time, modification time, and last access time, for files or subfolders in the specified folder
let info = await api.stat('subfolder')
console.log(info)
// Rename a file in the specified folder
api.rename('report1.pdf', 'report2.pdf')
// Delete a file in the specified folder
api.remove('price.pdf')
// Create a subfolder in the specified folder
api.mkdir('newfolder')Last updated