AjaxControlToolkit.LinkStaticResources.Program.EnsurePath C# (CSharp) Method

EnsurePath() static private method

static private EnsurePath ( string path ) : void
path string
return void
        static void EnsurePath(string path)
        {
            var dir = Path.GetDirectoryName(path);
            if(!Directory.Exists(dir))
                Directory.CreateDirectory(dir);

            if(File.Exists(path))
                File.Delete(path);
        }