Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int path = 1; path < argc; path++) {
- QFileInfo fi(argv[path]);
- if (fi.isDir()) {
- QDir dir(argv[path], "", QDir::LocaleAware, QDir::AllEntries);
- qDebug() << dir.entryList();
- QDirIterator it(QString(argv[path]), QDirIterator::Subdirectories);
- while (it.hasNext()) {
- it.next();
- qDebug() << it.fileInfo().absoluteFilePath();
- /* Processing; irrelevant in the context of the question */
- }
- }
- }
- QApplication app(argc, argv);
- QStringList args = app.arguments();
- for(...)
- const QString dirName = QString::fromLocal8Bit( argv[path] );
Add Comment
Please, Sign In to add comment