From ff9523dafe3a1a680ca2f82453cde21a85aff647 Mon Sep 17 00:00:00 2001 From: pavlik_dev <121434853+pavliktt@users.noreply.github.com> Date: Thu, 22 Aug 2024 00:03:19 +0300 Subject: [PATCH] Remove BUFSIZE. --- main.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/main.cpp b/main.cpp index 7b42b37..45396c0 100644 --- a/main.cpp +++ b/main.cpp @@ -10,8 +10,6 @@ #include #include -#define BUFSIZE 1024 - enum FileType { Unknown, File, Folder, @@ -316,8 +314,7 @@ int main(int argc, char *argv[]) printf("\tName: %s\n", name.c_str()); printf("\tType: %s\n", type.c_str()); if (absolute) printf("\tAbsolute path: %s\n", full_name.c_str()); - printf("\tMIME: %s\n", mime_type.c_str()); // Default MIME type, adjust as needed - + printf("\tMIME: %s\n", mime_type.c_str()); if (is_file) { std::string _1024 = readable_fs(file_stat.st_size, 1000, "B"); std::string _1000 = readable_fs(file_stat.st_size, 1024, "iB"); @@ -337,4 +334,3 @@ int main(int argc, char *argv[]) return 0; } -