SECFileSystem::DeleteDirectory

BOOLSECFileSystem::DeleteDirectory(const CString&Directory, const BOOLbDeleteFilesAndDirs= FALSE)

Deletes a directory and all its files and subdirectories.

Defined in: filesys.cpp

Return Value

Nonzero if successful; 0 if an error occurred.

Parameters

Directory

Name of the directory to delete.

Comments

To delete a directory. Optionally, all lower level files and directories can be deleted.

If bDeleteFilesAndDirs is FALSE, directory must be empty or an error will occur and FALSE will be returned.

bDeleteFilesAndDirs

Whether to delete all the files and directories in the specified directory before the specified directory is deleted.

See Also

SECFileSystem  MakeDirectory  MakePath  DeleteFiles