How to tell not-obvious file type at FTP site

How to tell not-obvious file type at FTP site

Post by Fred X » Wed, 23 Nov 1994 04:25:08



ftp only supports binary or ascii mode file transfer.
binary mode is always safe in ftp file transfer.


>Hello,

>I wonder if there's a way to identify file type at an FTP site before
>file retrieval.  I understand most FTP sites have logical cluster of pub,
>bin,doc etc. directories, which kind of tells you what file type under
>what directory, but if that's not the case, I assume a user first
>has to determine file type (ASCII, binary, image) before choosing
>a specific file type to retrieve a file.  Suppose, we can't tell
>file type, do you think, 'bin' mode/type is the safe way to go?

>I appreciate your input.

>Don

--
// Xia, Zeqing Fred, Software Engineer          |_____/ \/\
// Bridge Information Systems, Inc.             |____/|_/\_\
// 717 Office Parkway, St. Louis, MO 63141      |___/_|_  _/

 
 
 

How to tell not-obvious file type at FTP site

Post by ylli » Wed, 23 Nov 1994 02:07:01


Hello,

I wonder if there's a way to identify file type at an FTP site before
file retrieval.  I understand most FTP sites have logical cluster of pub,
bin,doc etc. directories, which kind of tells you what file type under
what directory, but if that's not the case, I assume a user first
has to determine file type (ASCII, binary, image) before choosing
a specific file type to retrieve a file.  Suppose, we can't tell
file type, do you think, 'bin' mode/type is the safe way to go?

I appreciate your input.

Don