Skip to content

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 ​

NameDescription
createIfNotExistIf and the directory does not exist, it is created.
directoryThe directory whose files should be deleted.

Returns ​

Always returns if no exception was thrown.