Skip to main content

listfilesperdirectory

Description:

List all the files that were deleted under specified folder.
Note: This endpoint will not list the files which already passed the recovery time

Request

https://api.moinet.io/moibit/v1/listfilesperdirectory

Request type - POST

Headers#

Header KeyHeader ValueOptional
nonce<developer_nonce> No
signature<signature gotten after signing developer_nonce by developer> No
developerKeypublic id of the developerNo
networkIDID of the network the file exist No
appIDID of the app the file the file exist Yes
enduser_nonce<enduser nonce> where enduser has moi_idNo if enduser has moi_id
enduser_signature<signature gotten after signing enduser_nonce by enduser> where enduser has moi_idNo if enduser has moi_id
enduserIDId of the enduser if end-user doesn't have moi_id Yes

Parameters#

Param KeyParam TypeDescriptionOptional
pathStringFile name or path No

Response Array#

FieldDescription
versionversion of the file
hashContent identifier of the file
filesizeSize of the file uploaded
replication Number of replicas the file have
encryptionType Encryption type of file
lastUpdatedDate of the file when uploaded
directory Parent directory of the file being uploaded
path Absolute path of the file in system
isDir Is a directory or a file
recoveryTime Time duration till when one can recover this file once deleted
nodeAddressID of the node that processed this file

Sample Response#

{
"meta": {
"code": 200,
"requestId": "750060d4-ed7e-4670-a96d-5a5960b7fc3d",
"message": "got status successfully"
},
"data": [
{
"active": false,
"enable": true,
"version": 1,
"hash": "QmSpYUKSQHNFWzhqd25Rjtw3dwkN82BeJRWMDG57BDbS7H",
"filesize": 12159,
"replication": 3,
"filetype": "",
"encryptionType": 4,
"encryptionKey": "MES",
"lastUpdated": "2021-05-21T13:23:14.983386639+02:00",
"directory": "/newfolder",
"isDir": false,
"path": "/file52.png",
"recoveryTime": 1623212406,
"permanentDelete": false,
"nodeAddress": "0xb9f61aaCCc328156D4a46e241Aad46B6D1e9ee1e",
"appDeleted": false,
"userDeleted": false
}
]
}