Function Trashcan.restore

Restore item to its original location.

void restore (
  scope ref TrashcanItem item
) @safe;

Throws

WindowsException on Windows when the operation failed. FileException on Posix when could not move the item to its original location or could not recreate original location directory. Exception on other errors.