Go to bug ID
Hello, guest. We have noticed that you are not registered at this bug tracker. Your experience will be greatly enhanced if you log in. To do so, you first must register by clicking on the Register tab at the top. If you are already registered, you can login at the Login tab.
Syndicate Syndicate Listing Display Search Login/Register
Bug Id ?
Reporter ?
pn8830
Product/Version ?
Crimson Editor / Version 3.72 Beta 241
Status ?
Closed
Severity ?
Minor
Duplicate Of ?
- none -
Summary ?
FTP Open Remote Dialog does not sort files and directoried correctly
Report Time ?
May 30, 2008 03:37:25 PM
Assignment ?
Pvt_Ryan
Resolution ?
Fixed
Priority ?
Normal
Dependencies ?
- none -


Attachments
ftp_sort.png Screen shot
ftp-wintel-nix.png If WinInet is enabled and I connect to my nix server
ftp-nowintel-nix.png If WinInet is disabled and I connect to my nix server
ftp-wintel-nix2.png If WinInet is enabled and I connect to my nix server
Votes
For: 0 (0%)
Against: 0 (0%)
Total: 0

May 30, 2008 03:37:25 PM pn8830
Open remote dialog does not sort entries correctly. See the attachment.

May 30, 2008 03:37:56 PM pn8830
Attaching screen shot.
PN.

June 9, 2008 06:58:58 AM Pvt_Ryan
The numbers before the file names in my screen shots are the file created timestamps.

This seems to get (on mine atleast) passed as part of the filename, which does prevent me moving between directories.

June 9, 2008 07:14:12 AM Pvt_Ryan
Files to look in:

RemoteFile.cpp
RemoteFile.h
OpenRemoteDialog.h
OpenRemoteDialog.cpp

Sorting gets attempted in
OpenRemoteDialog.cpp @ line ~189

looking at the array as soon as its got the remote file list the only entry i can see is: "D/14:01 .adobe/N"
the full file path for that directory should be
/home/ryanm/.adobe

"D" - Directory
"14:01" - created timestamp
".adobe" - directory name
"/N" - "/L" is Link, "/N" is Directory

After line 189: arrFileInfo.Sort(TRUE);
The array has "D/00:03 .dvdrip/N" as its 1st element.

So for some reason (on my server) the information being returned is contains the timestamp as part of the filename

For files the format is:
"F/00:13 .gtk-bookmarks/108"

"F" - File
"00:13" - Timestamp
".gtk-bookmarks" - Filename
"108" - File size

so the Sorting on the original array would sort all directorys 1st (which we want) however it then sorts by timestamps which is where the error is occuring. The timestamp should be removed 1st.

June 9, 2008 08:08:55 AM Pvt_Ryan
nearly fixed. just need to finish the sorting.

June 9, 2008 06:35:08 PM Pvt_Ryan
Ok, made abit more progress (fixed the issue with WinInet being disabled)

Enable "Use WinInet" to connect to windows hosted ftp servers and disable for Linux Hosted FTP servers.
You will know you have the incorrect setting as time stamps will be displayed.

Still working on the sorting issue though.

June 9, 2008 06:54:20 PM Pvt_Ryan
Fixed as of rev 244

June 10, 2008 08:12:20 PM pn8830
Sweet!