Verify Folder or File Against File System
Previous Topic  Next Topic 

Verifies a folder or file against the file system. Note that isfolder=true is optional when verifying a folder's path. To verify a file instead of a folder, you must include isfolder=false as a parameter.


URL: /fd/validatepathajax


Example URL: http://host:port/fd/validatepathajax?dir=C:\path\to\validate.txt&isfolder=false


Parameters: 

dir - The path to validate. This must be in quotes if the path contains quotes.

isfolder - This setting is set to true or false. It is required if false, otherwise it is optional.


Result:


JSON:

Success: "{'resultType':'success', message:''}"

Failure: "{'resultType':'error', message:' error message here '}"