using system.io; directory.delete("somefolder",true); directory.create("somefolder");
will third line executed after dir deleted or while directory being deleted? have put first command "task" , wait until finished?
this older question worth noting - directory.delete
calls removedirectory
windows function, marks directory to-be-deleted, filesystem won't actually delete it until file handles closed (see docs). result possible return directory.delete
, find directory still exists.
Comments
Post a Comment