The ID of the application. You can find this in the URL of your application’s dashboard.
The path of the directory whose files you want to list. Default is the root directory.
Response
Indicates whether the call was successful.. success
if successful, error
if not.
The list of files and directories in the specified path.
The type of the entry. Can be file
or directory
.
The name of the file or directory.
The size of the file in bytes. For directories, it is 0.
The last modified timestamp of the file or directory in milliseconds since the epoch.
{
"status": "success",
"response": [
{
"type": "file",
"name": ".env",
"size": 86,
"lastModified": 1676168978000
},
{
"type": "file",
"name": ".gitignore",
"size": 8,
"lastModified": 1675125328000
},
{
"type": "file",
"name": "index.js",
"size": 614,
"lastModified": 1676168350000
},
{
"type": "file",
"name": "squarecloud.app",
"size": 65,
"lastModified": 1676169188000
},
{
"type": "directory",
"name": "src",
"lastModified": 1676155738000
}
]
}