title: can we lock a directory?
body: <p>I am using VSTS 2008 + C# + .Net 3.5 to develop a console application. For file access, we can access file in exclusive mode which blocks other process/thread from access the file -- which has the effect of "lock" the file.</p>
  
  <p>I am wondering for directory, are there any built-in API or solution to make the directory exclusive access -- has the effect of "locked"? For example, if one thread "locks" the directory, other thread/process can not call Directory.GetFiles, can not write file to the directory, can not read a file from the directory, etc.</p>