Appearance
DeleteDirectoryFiles Method
Definition
- Namespace:
JASE.IO - Assembly:
JASE.dll
bool DeleteDirectoryFiles(string directory, bool createIfNotExist = null)
csharp
bool DeleteDirectoryFiles(string directory, bool createIfNotExist = null)Deletes all files in the specified directory, optionally creating the directory if it does not exist.
Parameters
| Name | Description |
|---|---|
createIfNotExist | If and the directory does not exist, it is created. |
directory | The directory whose files should be deleted. |
Returns
Always returns if no exception was thrown.