moveToTrash

Move file or directory to trash can.

@trusted
void
moveToTrash

Parameters

path string

Path of item to remove. Must be absolute.

options TrashOptions

Control behavior of trashing on freedesktop environments.

Throws

Exception when given path is not absolute or does not exist, or some error occured during operation, or the operation is not supported on the current platform.

Meta