diff options
author | Robin Gareus <robin@gareus.org> | 2015-09-27 12:44:54 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-09-27 12:44:54 +0200 |
commit | e344d379d274f91850e8ca7c0f450a82b3c04c86 (patch) | |
tree | a966fe2b0190e84d3453fda887fec6960a754072 /libs/pbd/file_utils.cc | |
parent | cf761d4f67d04970604948caa860ce193695dc1c (diff) |
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.
Diffstat (limited to 'libs/pbd/file_utils.cc')
-rw-r--r-- | libs/pbd/file_utils.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/pbd/file_utils.cc b/libs/pbd/file_utils.cc index 950880c0bf..3cd0689f4b 100644 --- a/libs/pbd/file_utils.cc +++ b/libs/pbd/file_utils.cc @@ -476,6 +476,7 @@ void remove_directory (const std::string& dir) { remove_directory_internal (dir, 0, 0, false); + g_rmdir (dir.c_str()); } string |