Use more explicit exception types
Don't validate file size when duplicating