[Q]How do one determine if a ftp link is to a directory or a file ?

Karl Ramberg karl.ramberg at chello.se
Tue Jul 29 08:15:26 UTC 2003


How do one determine if a link in a ftp server is a link to a directory
or a file ?
Just looking at the returned ftp entry answers these strings, first one
a file, 
second a directory:


'lrwxrwxrwx    1 1137     1100           36 Apr 12 07:12
SqueakV3.sources.gz -> ../sources_files/SqueakV3.sources.gz'
'lrwxrwxrwx    1 0        1               5 Apr 24 11:15 pub -> .pub1'



Do one have to follow the link and the see if it returns a directory or
file, or can
one get the info just from the returned string ?

Karl



More information about the Squeak-dev mailing list