[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-user
Subject:    [VFS] Re: Set the transfer mode to ASCII in  a  file system
From:       Ralph Goers <ralph.goers () dslextreme ! com>
Date:       2009-07-31 14:45:50
Message-ID: BA9C9442-1E43-4692-9B56-FF44E74AE07C () dslextreme ! com
[Download RAW message or body]

Looking at the code setFileType is only being set in  
FTPClientFactory.createConnection. There is no logic currently in  
place to change to ASCII based on file extension or other attributes.  
The file type could be added as a FileSystemOption but you would then  
end up with two ftp connections being established, one for ASCII and  
one for binary.

Ralph

On Jul 31, 2009, at 3:59 AM, arenger wrote:

> 
> Hi,
> 
> I know that by default the transfer mode in commons VFS  is Binary.
> 
> Throuh the FtpFileSystemConfigBuilder is possible to modify some  
> properties
> of the FTP connection but definitely the transfer mode is not one of  
> them.
> 
> Does anybody know how to change it to ASCII?
> 
> Thanks.
> 
> 
> 
> 
> 
> -- 
> View this message in context: \
> http://www.nabble.com/Set-the-transfer-mode-to-ASCII-in--a--file-system-tp24754619p24754619.html
>  Sent from the Commons - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic