Improved validation for manipulating files in a workspace.