There's rmdirRecurse in std.file, but it removes the folder itself as
well as its contents. I'm looking for a function that removes only the
contents of the dir. Is this in Phobos, and if not can we add it?
Otherwise I have to use platform-specific calls to system() like "del *.*".
On 4/5/12, Andrej Mitrovic wrote:
> Otherwise I have to use platform-specific calls to system() like "del *.*".
Actually nevermind that, I can just remove the dir entirely and then
re-create it.
On Thursday, April 05, 2012 12:55:23 Andrej Mitrovic wrote:
> On 4/5/12, Andrej Mitrovic wrote:
> > Otherwise I have to use platform-specific calls to system() like "del
> > *.*".
>
> Actually nevermind that, I can just remove the dir entirely and then
> re-create it.
I don't believe that there'
On 4/5/12, Jonathan M Davis wrote:
> But it does have the downside of
> the new directory possibly not matching the original one with regards to
> permissions or ownership
That's a very good point. Since I run all of my code locally I never
run into these issues and so I've never given thought ab