Verifying the input
Use this API to verify if the input is a file or a folder.
Payload type | Body | Headers |
form-data (key-value) | filepath: <vfs path for which the user is accessible to> | Authorization |
Content-Type: multipart/form-data; boundary=<calculated when the request is sent> |
JSON | { "path":"/vfspath/" } | Authorization |
Content-Type: application/json |
Response
{
"success": "true" <If API request is success and false in case of failure>,
"responseMessage": " true: in case of a file and false: in case of a folder."
"file": true in case of a file and false in case of folder or directory.
}