You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Ralph Goers <ra...@dslextreme.com> on 2009/07/31 16:45:50 UTC
[VFS] Re: Set the transfer mode to ASCII in a file system
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
Re: [VFS] Re: Set the transfer mode to ASCII in a file system
Posted by Ralph Goers <ra...@dslextreme.com>.
On Aug 6, 2009, at 1:16 AM, Jörg Schaible wrote:
> Ralph Goers wrote at Dienstag, 4. August 2009 17:28:
>
>> You're welcome. I would suggest opening a Jira issue on this and
>> providing some suggestions on how you would like it to behave.
>
> This is VFS-182 and a patch is available ;-)
>
>
Oh, cool. Thanks!
Ralph
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
Re: [VFS] Re: Set the transfer mode to ASCII in a file system
Posted by Jörg Schaible <jo...@gmx.de>.
Ralph Goers wrote at Dienstag, 4. August 2009 17:28:
> You're welcome. I would suggest opening a Jira issue on this and
> providing some suggestions on how you would like it to behave.
This is VFS-182 and a patch is available ;-)
- Jörg
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
Re: [VFS] Re: Set the transfer mode to ASCII in a file system
Posted by Ralph Goers <ra...@dslextreme.com>.
You're welcome. I would suggest opening a Jira issue on this and
providing some suggestions on how you would like it to behave.
Ralph
On Aug 4, 2009, at 7:31 AM, arenger wrote:
>
> Thanks for your answer.
>
>
>
> Ralph Goers wrote:
>>
>> 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
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Set-the-transfer-mode-to-ASCII-in--a--file-system-tp24754619p24809711.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
Re: [VFS] Re: Set the transfer mode to ASCII in a file system
Posted by arenger <ma...@hotmail.com>.
Thanks for your answer.
Ralph Goers wrote:
>
> 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
>
>
>
--
View this message in context: http://www.nabble.com/Set-the-transfer-mode-to-ASCII-in--a--file-system-tp24754619p24809711.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