| Summary: | Quanta won't upload, saying: /path/to/dir is a folder but a file was expected | ||
|---|---|---|---|
| Product: | [Unmaintained] quanta | Reporter: | MM <radar> |
| Component: | general | Assignee: | András Manţia <amantia> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | A screenshot of the upload window | ||
|
Description
MM
2006-02-21 13:57:59 UTC
Created attachment 14794 [details]
A screenshot of the upload window
SVN commit 515460 by amantia:
Add trailing slash for local directories as well. Fixes addition of local directories to the project (creates weird project error like #122419).
BUG: 122419
M +5 -1 qextfileinfo.cpp
--- branches/KDE/3.5/kdewebdev/lib/qextfileinfo.cpp #515459:515460
@@ -336,9 +336,13 @@
QDir d(startPath, mask);
QStringList l = d.entryList();
QStringList::ConstIterator end = l.constEnd();
+ QString path;
for (QStringList::ConstIterator it = l.constBegin(); it != end; ++it)
{
- list.append(KURL::fromPathOrURL(startPath + "/" + (*it)));
+ path = startPath + "/" + (*it);
+ if (QFileInfo(path).isDir())
+ path.append("/");
+ list.append(KURL::fromPathOrURL(path));
}
l = d.entryList("*", QDir::Dirs);
end = l.constEnd();
|