Microsoft.WindowsAzure.Commands.Utilities.Common.Validate.BasicFileAndDirectoryValidation C# (CSharp) Method

BasicFileAndDirectoryValidation() private static method

private static BasicFileAndDirectoryValidation ( string fullPath, string name ) : void
fullPath string
name string
return void
        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);
            }
        }