Go Back   FlashFXP Forums > >

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 08-10-2004, 05:24 AM   #1
Che Mi K
Junior Member
 
Join Date: Aug 2004
Posts: 2
Talking io directorylisting string problem

holla peeps

I´m just tryn to write my small ftp client
but theres a big problem for me with that directorylistingsstrings
of files and dirs. could anyone explain me how many bytes are
i.E. Attributes or File/Dirsize or File/Dirname ....

would be really great, did not found anything about that on RFC´s
perhaps me english just ² bad

thx a lot
Che Mi K is offline  
Old 08-10-2004, 06:13 AM   #2
ADDiCT
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Aug 2003
Posts: 517
Default

There is indeed no RFC on ftp dirlisting, u'll have to invent your own way to parse the data. This is how each line looks like:
- access flags
- some number
- owner name
- group name
- filesize
- date
- filename or dirname
All fields are separated by one or more spaces.

Code:
drwxr-xr-x  18 ioFTPD       ADMiNS       276880417 Sep 23 19:58 GAMES
-rw-r--r--   0 ioFTPD       ADMiNS           17998 Apr 08 06:40 blabbla.nfo
access flags: drwxrwxrwx
d = directory, otherwise file
read/write/execute for owner, group and 'anyone'

date consists of 3 fields, mostly <month> <day> <hh:mm>
like Apr 08 16:45

(no idea what the number in the second field is for, i guess the number of subitems in a directory)
ADDiCT is offline  
Old 08-10-2004, 06:20 AM   #3
Che Mi K
Junior Member
 
Join Date: Aug 2004
Posts: 2
Default

thx fo fast answer
thought sumwhat

that one or more spaces was me problem all the time
i think this will cost more time for my lill brain than the whole bunch of the other functions lol
Che Mi K is offline  
Closed Thread

Tags
attributes, bytes, file/dirname, ftp, problem

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:11 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)