1 // HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
4 namespace HtmlAgilityPack
6 internal struct IOLibrary
8 #region Internal Methods
10 internal static void CopyAlways(string source
, string target
)
12 if (!File
.Exists(source
))
14 Directory
.CreateDirectory(Path
.GetDirectoryName(target
));
16 File
.Copy(source
, target
, true);
19 internal static void MakeWritable(string path
)
21 if (!File
.Exists(path
))
23 File
.SetAttributes(path
, File
.GetAttributes(path
) & ~FileAttributes
.ReadOnly
);