mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-24 16:53:50 +02:00
Bug 140404 - FTP new file does not work.
This commit is contained in:
parent
4d64b6d3ff
commit
433163302a
1 changed files with 16 additions and 7 deletions
|
@ -15,6 +15,7 @@
|
||||||
* Javier Montalvo Orus (Symbian) - Fixing 140323 - provided implementation for
|
* Javier Montalvo Orus (Symbian) - Fixing 140323 - provided implementation for
|
||||||
* delete, move and rename.
|
* delete, move and rename.
|
||||||
* Javier Montalvo Orus (Symbian) - Bug 140348 - FTP did not use port number
|
* Javier Montalvo Orus (Symbian) - Bug 140348 - FTP did not use port number
|
||||||
|
* Michael Berger (IBM) - Fixing 140404 - FTP new file creation does not work
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.services.files.ftp;
|
package org.eclipse.rse.services.files.ftp;
|
||||||
|
@ -404,6 +405,20 @@ public class FTPService extends AbstractFileService implements IFileService, IFT
|
||||||
return getFile(monitor, remoteParent, folderName);
|
return getFile(monitor, remoteParent, folderName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see org.eclipse.rse.services.files.IFileService#createFile(org.eclipse.core.runtime.IProgressMonitor, java.lang.String, java.lang.String)
|
||||||
|
*/
|
||||||
|
public IHostFile createFile(IProgressMonitor monitor, String remoteParent, String fileName) {
|
||||||
|
try {
|
||||||
|
File tempFile = File.createTempFile("ftp", "temp");
|
||||||
|
tempFile.deleteOnExit();
|
||||||
|
upload(monitor, tempFile, remoteParent, fileName, true, null, null);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return getFile(monitor, remoteParent, fileName);
|
||||||
|
}
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
/********************************************************
|
/********************************************************
|
||||||
*
|
*
|
||||||
|
@ -411,13 +426,7 @@ public class FTPService extends AbstractFileService implements IFileService, IFT
|
||||||
*
|
*
|
||||||
********************************************************/
|
********************************************************/
|
||||||
|
|
||||||
public IHostFile createFile(IProgressMonitor monitor, String remoteParent, String fileName)
|
public boolean copy(IProgressMonitor monitor, String srcParent, String srcName, String tgtParent, String tgtName)
|
||||||
{
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean copy(IProgressMonitor monitor, String srcParent, String srcName, String tgtParent, String tgtName)
|
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue