static bool IsDirectoryReadOnly(string path)
{
if (!Directory.Exists(path))
{
DirectoryInfo dr = new DirectoryInfo(path);
if (dr.Attributes == FileAttributes.ReadOnly)
{
return true;
}
}
return false;
}
Thanks,
A.m.a.L
.Net Goodies
|
|
Remember to click "mark as answered" when you get a correct reply to your question
|