update semantics of PBD::remove_directory()
authorRobin Gareus <robin@gareus.org>
Sun, 27 Sep 2015 10:44:54 +0000 (12:44 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 27 Sep 2015 10:44:54 +0000 (12:44 +0200)
commite344d379d274f91850e8ca7c0f450a82b3c04c86
treea966fe2b0190e84d3453fda887fec6960a754072
parentcf761d4f67d04970604948caa860ce193695dc1c
update semantics of PBD::remove_directory()

Remove the directory recursively including itself. The function
is used in two places only:

* LV2Plugin::add_state() -- no change, remove tmp. state
* Session::save_as()  -- on error, remove target

In both cases removing the folder itself is correct.
libs/pbd/file_utils.cc
libs/pbd/pbd/file_utils.h
libs/pbd/test/filesystem_test.cc