moveToTrash

Move file or directory to trash can.

@trusted
void
moveToTrash
(
string path
)

Parameters

path string

Path of item to remove. Must be absolute.

Throws

Exception when given path is not absolute or does not exist or some error occured during operation.

Meta