Extended path class with file and folder-specific path validation.