Smart File Transfer; program determines whether to use ascii or binary
|Reported by:||Randy Smith||Owned by:|
|Component version:||Operating system type:||Windows|
|Operating system version:|
Add smarts to the program to analyze a file transfer to determine whether to use ASCII or BINARY. I use both Windows and *unix and when transferring files sometimes the conversion doesn't pick the correct Transfer Type.
With "File Transfer Type = Auto", the program should pre-read the file before setting the Transfer Type. If the file is a binary file, then transfer as binary. It the file is text, determine file system type, ie (DOS, UNIX, or Mac). Transfer the file so it has the correct line delimiters on the receiving side. The program should not look at the file name or extension, only at the contents of the file. I'm not sure if this behavoir is covered by the RFC or not.