private static void BasicFileAndDirectoryValidation(string fullPath, string name)
{
ValidateStringIsNullOrEmpty(fullPath, name);
ValidateFileName(fullPath, Resources.IllegalPath);
string directoryPath = Path.GetDirectoryName(fullPath);
if (!string.IsNullOrEmpty(directoryPath))
{
ValidatePath(fullPath, Resources.IllegalPath);
}
}