ZeroInstall.HierarchyToFolder.CheckWritePath C# (CSharp) Method

CheckWritePath() private static method

private static CheckWritePath ( string combinedPath ) : void
combinedPath string
return void
        private static void CheckWritePath(string combinedPath)
        {
            if (File.Exists(combinedPath)) throw new InvalidOperationException("Can't overwrite existing file.");
            if (Directory.Exists(combinedPath)) throw new InvalidOperationException("Can't overwrite existing _folder.");
        }