| 21 | } |
| 22 | |
| 23 | void fileWatcher::addPathRecursive(QString path) |
| 24 | { |
| 25 | addPath(path); |
| 26 | if(recursiveScanDirs) { |
| 27 | QDirIterator it(path, QDir::Dirs | QDir::NoSymLinks | QDir::NoDotAndDotDot, QDirIterator::Subdirectories); |
| 28 | |
| 29 | while (it.hasNext()) { |
| 30 | it.next(); |
| 31 | QString f(it.filePath()); |
| 32 | if(!f.endsWith("cache")) { |
| 33 | addPath(f); |
| 34 | } |
| 35 | } |
| 36 | } |
| 37 | } |