Skip to main content
Version: 5.7.0

GetFileInfoSimple

Given a path and filename, returns information about the corresponding file.

ServiceOperation
globalFileV3GET_FILE_INFO_SIMPLE

Method Parameters

ParameterDescription
folderPathpath to the file
filenamefilename

Usage

http://localhost:3000
string folderPath = "/root1/sub11/sub12/";
string filename = "sub12file1";
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.GlobalFileService.GetFileInfoSimple(folderPath, filename, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"fileDetails": {
"fileId": "4d0b8945-41f8-4a2b-a2f5-e9c0b2482bc6",
"contentMd5": "0snE+wsqo2XeseZbT5kLyQ==",
"treeId": "ff81c691-5683-4aa0-addb-6f89ecd3ce75",
"fileName": "sub12file1",
"fileSize": 64,
"dateUploaded": 1586975354000,
"etag": "d2c9c4fb0b2aa365deb1e65b4f990bc9",
"version": 1,
"url": "https://api.braincloudservers.com/files/bc/g/23302/f/xxxx-xxx-xxx-xxx/yyy-yyy-yyy-yyy/V1/sub12file1"
}
}
}