[Help]How to handle exception from dirEntries?

2014-06-16 Thread Keqin via Digitalmars-d-learn
Hi everyone, I have write a short program to check file size recursively as bellow. If i run this exe on windows eg.: hello.exe --dir C:\ It will throw as: std.file.FileException@std\file.d(2519): C:\$Recycle.Bin\S-1-5-18: Access is den ied. I believe the exception comes from the follow

Re: [Help]How to handle exception from dirEntries?

2014-06-16 Thread Keqin via Digitalmars-d-learn
Thanks for your reply! On Tuesday, 17 June 2014 at 04:50:43 UTC, Ali Çehreli wrote: On 06/16/2014 09:44 PM, Keqin wrote:> Hi everyone, > std.file.FileException@std\file.d(2519): C:\$Recycle.Bin\S-1-5-18: > Access is den > ied. > > I believe the exception comes from the following line: > auto en