Move the given paths out of destination into a temporary folder, run the callback, then move them back. The paths are restored even when the callback throws (the error is re-thrown afterwards).
destination
Move the given paths out of
destinationinto a temporary folder, run the callback, then move them back. The paths are restored even when the callback throws (the error is re-thrown afterwards).