www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Remove dir contents?

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 *.*".
Apr 05 2012