标签: c# visual-studio-2010
我的应用程序中有这行代码
var files = System.IO.Directory. GetFiles(sourceDir, "*.jpg", SearchOption.AllDirectories);
如何跳过system-files-directories中的files,因为代码运行时,UnauthorizedAccessException
system-files-directories
files
UnauthorizedAccessException