MCPcopy Create free account
hub / github.com/bumptop/BumpTop / onFileModified

Method onFileModified

trunk/win/Source/BT_FileSystemManager.cpp:741–754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739}
740
741void FileSystemManager::onFileModified(LPCWSTR strFileName)
742{
743 QMutexLocker m(&_memberMutex);
744 QString wideFileName = QString::fromUtf16((const ushort *) strFileName);
745 QDir parentPath = parent(wideFileName);
746 Watchable * obj = getWatchObjFromPath(native(parentPath));
747
748 // If we actually have a watcher on this directory, notify it on the next tick
749 if (obj)
750 {
751 // Add it to the List
752 eventList.push_back(WatchableEvent(obj, FileModified, wideFileName, QString()));
753 }
754}
755
756StrList FileSystemManager::getWorkingDirectoryContents(QString filter)
757{

Callers 1

updateMethod · 0.45

Calls 5

WatchableEventClass · 0.85
parentFunction · 0.70
nativeFunction · 0.70
QStringFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected