Commit 42b0194d authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

FsDiscoverer: Fix invalid last modification date

parent 7d62c062
......@@ -48,6 +48,7 @@ bool FsDiscoverer::discover( const std::string &entryPoint )
return false;
checkFiles( fsDir.get(), f );
checkSubfolders( fsDir.get(), f );
f->setLastModificationDate( fsDir->lastModificationDate() );
return true;
}
......@@ -98,6 +99,7 @@ bool FsDiscoverer::checkSubfolders( fs::IDirectory* folder, FolderPtr parentFold
auto f = Folder::create( m_dbConn, subFolder->path(), 0, subFolder->isRemovable(), parentFolder->id() );
checkFiles( subFolder.get(), f );
checkSubfolders( subFolder.get(), f );
f->setLastModificationDate( subFolder->lastModificationDate() );
continue;
}
if ( subFolder->lastModificationDate() == (*it)->lastModificationDate() )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment