Skip to main content
Version: 5.7.0

ListUserFiles

List all user files

ServiceOperation
fileLIST_USER_FILES

Method Parameters

ParameterDescription
cloudPathFile path
recurseWhether to recurse into sub-directories

Usage

http://localhost:3000
string path = "dir1/dir2";
bool recurse = true;
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.FileService.ListUserFiles(path, recurse, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"fileList": [
{
"updatedAt": 1452603368201,
"uploadedAt": null,
"fileSize": 85470,
"shareable": true,
"createdAt": 1452603368201,
"profileId": "bf8a1433-62d2-448e-b396-f3dbffff44",
"gameId": "99999",
"path": "test2",
"filename": "testup.dat",
"downloadUrl": "https://api.braincloudservers.com/s3/bc/g/99999/u/bf8f44/f/test2/testup.dat",
"cloudLocation": "bc/g/99999/u/bf8f44/f/test2/testup.dat"
}
]
}
}