Implement check if file or directory exists before processing

Return error to client
Top package rename