I am using this method with the FileIO.SearchOption.SearchAllSubDirectories
option to get a collection of directories that I can then iterate over and
check ACLs for unknown sids. The problem is that this method takes extreamly
long, particularly on a large directory structure over the network. Is there
a way to run this method (or similar method) asyncronously so I can be
processing ACLs while this meathod is fetching the directory names?
Thanks - Terry
cody - 12 Dec 2005 15:05 GMT
Why don't you let the method run in a new thread? Or you could try without
flag SearchAllSubDirectories but instead call the method recursively by hand
so that the search is broken down into multiple smaller steps.
>I am using this method with the FileIO.SearchOption.SearchAllSubDirectories
> option to get a collection of directories that I can then iterate over and
[quoted text clipped - 5 lines]
> processing ACLs while this meathod is fetching the directory names?
> Thanks - Terry