mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
[199773] Default file transfer mode is ignored for some file types (FTP always uploads binary)
This commit is contained in:
parent
477364bc02
commit
4603b2a1b1
1 changed files with 3 additions and 4 deletions
|
@ -18,6 +18,7 @@
|
||||||
* Martin Oberhuber (Wind River) - [177523] Unify singleton getter methods
|
* Martin Oberhuber (Wind River) - [177523] Unify singleton getter methods
|
||||||
* Martin Oberhuber (Wind River) - [186128] Move IProgressMonitor last in all API
|
* Martin Oberhuber (Wind River) - [186128] Move IProgressMonitor last in all API
|
||||||
* Martin Oberhuber (Wind River) - [183824] Forward SystemMessageException from IRemoteFileSubsystem
|
* Martin Oberhuber (Wind River) - [183824] Forward SystemMessageException from IRemoteFileSubsystem
|
||||||
|
* Javier Montalvo Orus (Symbian) - [199773] Default file transfer mode is ignored for some file types
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.subsystems.files.core.servicesubsystem;
|
package org.eclipse.rse.subsystems.files.core.servicesubsystem;
|
||||||
|
@ -452,10 +453,8 @@ public final class FileServiceSubSystem extends RemoteFileSubSystem implements I
|
||||||
|
|
||||||
protected boolean isBinary(String localEncoding, String hostEncoding, String remotePath)
|
protected boolean isBinary(String localEncoding, String hostEncoding, String remotePath)
|
||||||
{
|
{
|
||||||
boolean isText = !hostEncoding.equals(localEncoding) &&
|
return SystemFileTransferModeRegistry.getInstance().isBinary(remotePath) ||
|
||||||
SystemFileTransferModeRegistry.getInstance().isText(remotePath) &&
|
SystemEncodingUtil.getInstance().isXML(remotePath);
|
||||||
!SystemEncodingUtil.getInstance().isXML(remotePath) ;
|
|
||||||
return !isText;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected boolean isBinary(IRemoteFile source)
|
protected boolean isBinary(IRemoteFile source)
|
||||||
|
|
Loading…
Add table
Reference in a new issue