SysCheckFilenameExists
Check if filename exists for provided path and name.
Service | Operation |
---|---|
globalFileV3 | SYS_CHECK_FILENAME_EXISTS |
Method Parameters
Parameter | Description |
---|---|
folderPath | The folder path. |
filename | The file name. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// Cloud Code only. To view example, switch to the Cloud Code tab
var folderPath = "";
var filename = "cccc";
var globalFileV3Proxy = bridge.getGlobalfilev3ServiceProxy();
var postResult = globalFileV3Proxy.SysCheckFilenameExists(folderPath, filename);
{
"service":"globalFileV3",
"operation":"SYS_CHECK_FILENAME_EXISTS",
"data":{
"folderPath":"",
"filename":"cccc"
}
}
JSON Response
{
"data": {
"fileDetails": {
"treeId": "fb3431cd-6e2f-47f1-8100-8941abf6bb4f",
"fileName": "glogcopy.json",
"fileSize": 7051,
"dateUploaded": 1677521119000,
"etag": "a6f4cd3c065aed36227d3582adc5d952",
"acl": {
"member": 2,
"other": 0
},
"version": 2,
"url": "https://api.internal.braincloudservers.com/groupfiles/bc/g/23782/gr/2bf538d1-19ea-4e14-9862-f979215e09b7/fb3431cd-6e2f-47f1-8100-8941abf6bb4f/6d938c22-3b8c-4b99-a913-2edafed71a83/V2/glogcopy.json",
"fileId": "6d938c22-3b8c-4b99-a913-2edafed71a83"
},
"groupId": "2bf538d1-19ea-4e14-9862-f979215e09b7",
"exists": true
},
"status": 200
}