FileSystem.deleteDirectory

void deleteDirectory(string path, bool recursive = false, thrown IoError error)

Deletes a directory.

Remarks

Throws IoError when the directory cannot be deleted. Recursive deletion deletes symlink or reparse-point entries themselves rather than following them as directories.

Parameters

string
path

Directory path to delete.

bool
recursive = false

When true, contained files and directories are removed first.

thrown IoError
error

Generated with campc v0.8.0-preview.1+4df4cd2858d46c717d136ff5c571742dc449f642.