Product Logo

CNS Image

Import, edit, and export Images in the FileMaker environment

Functions

CNSImage_Folder_Delete

NameCNSImage_Folder_Delete
Description

This function Deletes a Folder from your hard drive. If the folder is not empty, use the DeleteContents parameter to delete the contents and the folder.

Return TypeText
FormatCNSImage_Folder_Delete ( Folder ; DeleteContents )
Required Parameters
Folder

The path of the folder you want to delete.

Optional Parameters
DeleteContents

If True, the contents of the folder will be deleted first. [Default is False, which will cause the function to fail if the folder is not empty.]

Examples
Example 1

Deletes the empty folder named "New Folder" from the user's Desktop.

CNSImage_Folder_Delete( "~/Desktop/New Folder" )
Example 2

Deletes the folder named "New Folder" from the user's Desktop even if it contains files.

CNSImage_Folder_Delete( "~/Desktop/New Folder" ; "True")