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.
This commit is contained in:
Robin Gareus 2015-09-27 12:44:54 +02:00
parent cf761d4f67
commit e344d379d2
3 changed files with 4 additions and 10 deletions

View file

@ -476,6 +476,7 @@ void
remove_directory (const std::string& dir)
{
remove_directory_internal (dir, 0, 0, false);
g_rmdir (dir.c_str());
}
string