Go Back   FlashFXP Forums > FlashFXP > Release Archive > Website

Website Comments, Suggestions, Questions, Concerns, Fan mail, Hate mail, Whatever goes.

 
 
Thread Tools
Old 09-08-2004, 09:31 AM   #1
Senior Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Sep 2003
Posts: 148
Default Meaning of 2nd column in file listing

I'm trying to make my own ftp server. I haven't any problems except to understand the meaning of the second column of this file listing.

Code:
drwxr-xr-x  14 Mister_X     ioftpd              0 Sep 06 18:17 Dir1
drwxr-xr-x   2 Mister_X     ioftpd              0 Jun 14 16:50 Dir2
drwxr-xr-x   7 Mister_X     ioftpd              0 Aug 12 14:58 Dir3
-rwxr-xr-x   0 Mister_X     ioftpd              0 Aug 16 15:48 File
What does these numbers represent (14, 2, 7 and 0) ?
0 mean that's a file but the others?
Mr_X is offline  
Old 09-08-2004, 12:22 PM   #2
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 2,022
Default

No RFC defines the format of the data returned by LIST or STAT. The FTP server decides what it sends back on such commands.

The most used format is the format of the UNIX ls -l command, in which that number (2nd value) refers to the number of links to that file / directory.

Not sure how the ftp server count that...
Mouton is offline  
Old 09-11-2004, 08:26 AM   #3
Junior Member
 
Join Date: Jun 2004
Posts: 28
Default Re: Meaning of 2nd column in file listing

Quote:
Originally posted by Mr_X
I'm trying to make my own ftp server. I haven't any problems except to understand the meaning of the second column of this file listing.

Code:
drwxr-xr-x  14 Mister_X     ioftpd              0 Sep 06 18:17 Dir1
drwxr-xr-x   2 Mister_X     ioftpd              0 Jun 14 16:50 Dir2
drwxr-xr-x   7 Mister_X     ioftpd              0 Aug 12 14:58 Dir3
-rwxr-xr-x   0 Mister_X     ioftpd              0 Aug 16 15:48 File
What does these numbers represent (14, 2, 7 and 0) ?
0 mean that's a file but the others?
I guess 0 means it's a file or it's a directory in which nothing is inside.In the above case,it's a file(you can check the first column).
Syrinx is offline  
Old 09-11-2004, 08:33 AM   #4
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,234
Default

Yes, it shows number of files/directories. Only few daemons provide this information though - and way the provide it seems to vary.

On io, it is non recursive count of files/directories inside a directory (including '.' and '..')

File = 0
Empty directory = 2
Directory with something inside = 3
darkone is offline  
 
Create a free account to browse our forums without ads



Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -5. The time now is 01:07 AM.