+1 for clear_dir()
I agree that there's no other obvious meaning that it could have.
On Thursday, August 25, 2016 9:44 AM, Nick Coghlan
wrote:
On 25 August 2016 at 23:14, Victor Stinner wrote:
> Maybe add a different function rather add a flag? Something like
> shutil.remove_dir_files
I've been finding that a common scenario is where I want to remove everything
in a directory, but leave the (empty) root directory behind, not removing it.
So for example, if I have a directory C:\foo and it contains subdirectory
C:\foo\bar and file C:\foo\myfile.txt, and I want to remove the sub