MobileCRM.Application.directoryExists - Resconet/JSBridge GitHub Wiki

Checks whether the directory with given path exists in the application local data.

Arguments

Argument Type Description
path String Defines the relative path of the directory located in the application local data.
success function(result) A callback function for successful asynchronous result. The result will carry a Boolean object determining whether the directory exists or not.
failed function(error) A callback function for command failure. The error argument will carry the error message.
scope A scope for calling the callbacks; set "null" to call the callbacks in global scope.
MobileCRM.Application.directoryExists("TestData/MyFolder", function (exists) {
	MobileCRM.bridge.alert(exists ? "Exists" : "Doesn't exist");
}, MobileCRM.bridge.alert);
⚠️ **GitHub.com Fallback** ⚠️