I'm writing my own ftp client at the moment... that is how I come on probs like this.
The best way I resolved this, is the next thing:
Code:
drwx------ 5 roeltje 513 4096 Jan 13 16:41 roeltje
drwx------ 2 la la la la 4096 Jan 11 12:46 la la
-rw------- 1 roel roel 559 May 22 2002 pico.save
the date is always in a same format. I run a test from the last byte of the name string, there I will look for numbers, when I found 2 numbers after each other (time xx:xx or year xxxx). Then I will look for spaces that are always the same in the date. If I found the the spaces, I will copy the 3 bytes which I think are the month to an 3 char big array, compare it with the 12 possible values of months. Then if this is true, I'm almost sure I got the position of the date, I can run from there the filename + the filesize. The directory / rights info is clear also. only the group and user are not 100% trackable.. but well these are not that nessacary to know. This is of coarse not a 100% bugfree algoritm, but I will be kind enough to send you my ftp client so you can see it will work.