VDirectoryInfo.Delete Method
Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9119)
Delete()
Deletes a directory.
Declaration
public void Delete()
Remarks
Method deletes only an empty directory. When a directory is not empty then IOException is thrown.
Delete(Boolean)
Deletes a directory.
Declaration
public void Delete(bool recursive)
Parameters
Type | Name | Description |
---|---|---|
Boolean | recursive | When the argument is true then this method deletes all files and directories in the directory recursively. When the argument is false and a directory is not empty then this method throws the IOException. |