Update main.cpp

This commit is contained in:
pavlik_dev 2024-08-24 16:24:34 +03:00 committed by GitHub
parent 992e37fc65
commit 32ae97d764
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -303,7 +303,9 @@ int main(int argc, char *argv[])
// delete[] temp;
std::string name = basename(full_name);
if(!is_file) name += "/";
#ifndef NO_MIME
std::string mime_type = get_mime(full_name);
#endif
FileType file;
#ifdef NO_MIME
file = (is_file) ? FileType::File : FileType::Folder;