Skip to content

Commit

Permalink
find .tti in name the same c++ way as pagelist
Browse files Browse the repository at this point in the history
  • Loading branch information
ZXGuesser committed Dec 10, 2019
1 parent 127a162 commit 4ac2941
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions filemonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,7 @@ int FileMonitor::readDirectory(std::string path){
continue;
}

#ifdef _WIN32
char* p=strstr(dirp->d_name,".tti");
#else
char* p=strcasestr(dirp->d_name,".tti");
#endif

if (p)
if (std::string(dirp->d_name).find(".tti") != std::string::npos)
{
// struct tm* clock = gmtime(&(attrib.st_mtime)); // Get the last modified time and put it into the time structure
// std::cerr << path << "/" << dirp->d_name << std::dec << " time:" << std::setw(2) << clock->tm_hour << ":" << std::setw(2) << clock->tm_min << std::endl;
Expand Down

0 comments on commit 4ac2941

Please sign in to comment.