CheckFilenameExists
Check if filename exists for provided path and name.
Service | Operation |
---|---|
globalFileV3 | CHECK_FILENAME_EXISTS |
Method Parameters
Parameter | Description |
---|---|
folderPath | File located cloud path/folder |
filename | File cloud name |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var folderPath = "folder1";
var filename = "leaderboardpng";
var globalFileProxy = bridge.getGlobalFileV3ServiceProxy();
var postResult = globalFileProxy.checkFilenameExists(folderPath, filename);
if (postResult.status == 200) {
// Success!
}
{
"service": "globalFileV3",
"operation": "CHECK_FILENAME_EXISTS",
"data": {
"folderPath": "folder1",
"filename": "filename"
}
}
JSON Response
{
"data": {
"exists": true
},
"status": 200
}