optimization - Optimized way to get the whole ACLs of a directory in c# -


is there optimal way whole acls entry of files , directories in directory in c# ?

at minute, i'm using kind of code files , sames directories :

    string[] files = file.getfiles(directory);      foreach (string linefiles in files)     {         directorysecurity dsecurityfile = file.getaccesscontrol(linefiles);         displayaccessrule(dsecurityfile, linefiles);     } 

but take long have results. guys have idea optimized way through ?


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -