MSBuild.ExtensionPack.FileSystem.Folder with TaskAction="RemoveContent" throws IOException: The dire

Posted by nabeelfarid on Stack Overflow See other posts from Stack Overflow or by nabeelfarid
Published on 2010-03-12T14:16:22Z Indexed on 2010/03/12 14:17 UTC
Read the original article Hit count: 477

Filed under:

Hi guys,

I would like to delete all the files and subfolders inside a folder. For this purpose, I am using task in my script with property TaskAction set to "RemoveContent". However there is an inconsistent behaviour. Sometimes when I run the script, it throws IOException with the messsage The directory is not empty. But when i rerun the script it works fine. Any idea why would it be throwing this exception? As I said this does happens occasionally.

Regards, Nabeel Farid

© Stack Overflow or respective owner

Related posts about msbuild-task