Hello!
I'm have some troubles with using this classes(QFtp and QUrlInfo) in Qt4 (Qt 4.1.0)
In class QFtp in method parseDir...
1.
Not truly transform of ftp string buffer...for example strings
-rw-r--r-- 1 ftp ftp 4 May 09 08:18 1 1 1.1
-rw-r--r-- 1 ftp ftp 4 May 09 08:18 1 1 1.1
To copy to clipboard, switch view to plain text mode
and
-rw-r--r-- 1 ftp ftp 4 May 09 08:18 1 1 1.1
-rw-r--r-- 1 ftp ftp 4 May 09 08:18 1 1 1.1
To copy to clipboard, switch view to plain text mode
will be transform to equivalent string:
-rw-r--r-- 1 ftp ftp 4 May 09 08:18 1 1 1.1
-rw-r--r-- 1 ftp ftp 4 May 09 08:18 1 1 1.1
To copy to clipboard, switch view to plain text mode
And as result - we will be lost info about file "1__1_1.1" (here '_' - space)
Problem here (qftp.cpp, str. 436):
QStringList lst = buffer.simplified().split(" ");
2.
Not correct big(>3.2 Gb) size write to QUrlInfo. problem here(qftp.cpp, str. 517)
Not correct:
info->setSize(tmp.toInt());
M.b. correct:
info->setSize(tmp.toLongLong());
3.
Not correct date write to QUrlInfo. problem here(qftp.cpp, str. 523)
Not correct:
lst[5] = lst[5].toUpper();
M.b. correct if comment this string
4.
Other troubles that I see - it's problem in file size processing when downloading file... Not correct if file size >3.2 Gb (int)
It's a bug? Where I can address with it?
Thx.
PS: sorry for my English..my native language is Russian
Bookmarks