From e344d379d274f91850e8ca7c0f450a82b3c04c86 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 27 Sep 2015 12:44:54 +0200 Subject: 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 | 1 + 1 file changed, 1 insertion(+) (limited to 'libs/pbd/file_utils.cc') 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 -- cgit v1.2.3