Remove BUFSIZE.
This commit is contained in:
parent
3b3af67c5b
commit
ff9523dafe
6
main.cpp
6
main.cpp
@ -10,8 +10,6 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
|
|
||||||
#define BUFSIZE 1024
|
|
||||||
|
|
||||||
enum FileType {
|
enum FileType {
|
||||||
Unknown,
|
Unknown,
|
||||||
File, Folder,
|
File, Folder,
|
||||||
@ -316,8 +314,7 @@ int main(int argc, char *argv[])
|
|||||||
printf("\tName: %s\n", name.c_str());
|
printf("\tName: %s\n", name.c_str());
|
||||||
printf("\tType: %s\n", type.c_str());
|
printf("\tType: %s\n", type.c_str());
|
||||||
if (absolute) printf("\tAbsolute path: %s\n", full_name.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) {
|
if (is_file) {
|
||||||
std::string _1024 = readable_fs(file_stat.st_size, 1000, "B");
|
std::string _1024 = readable_fs(file_stat.st_size, 1000, "B");
|
||||||
std::string _1000 = readable_fs(file_stat.st_size, 1024, "iB");
|
std::string _1000 = readable_fs(file_stat.st_size, 1024, "iB");
|
||||||
@ -337,4 +334,3 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user