Remove BUFSIZE.

This commit is contained in:
pavlik_dev 2024-08-22 00:03:19 +03:00 committed by GitHub
parent 3b3af67c5b
commit ff9523dafe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,8 +10,6 @@
#include <sys/types.h>
#include <dirent.h>
#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;
}