Retain file stats when copying (close #235)