aboutsummaryrefslogtreecommitdiff
path: root/src/remove.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/remove.c')
-rw-r--r--src/remove.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/remove.c b/src/remove.c
index ac8e8f9..1282d44 100644
--- a/src/remove.c
+++ b/src/remove.c
@@ -21,11 +21,12 @@
// FILE* file_ptr = fopen(dirent_ptr->d_name, "r");
// if (!file_ptr) { continue; }
// if (strcmp(get_filename_ext(dirent_ptr->d_name), ".so") == 0) {
-// remove(strcat(install_directories[], dirent_ptr->d_name));
-// } else if (!access(dir_entry.path().c_str(), X_OK) && !is_directory(dir_entry.path())) {
-// std::filesystem::remove(install_directories["bin"]+"/"+dir_entry.path().filename().string());
-// } else if (dir_entry.path().extension() == ".h") {
-// std::filesystem::remove(install_directories["include"]+"/"+dir_entry.path().filename().string());
+// remove(strcat(map_get(&cached_install_directories, "lib"), strcat("/", dirent_ptr->d_name)));
+// } else if (!access(dirent_ptr->d_name, X_OK) && stat_buf.st_mode != S_IFDIR) {
+// remove(strcat(map_get(&cached_install_directories, "bin"), strcat("/", dirent_ptr->d_name)));
+// } else if (strcmp(get_filename_ext(dirent_ptr->d_name), ".h") == 0) {
+// remove(strcat(map_get(&cached_install_directories, "include"), strcat("/", dirent_ptr->d_name)));
+// }
// }
// }
//}