1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 15:15:25 +02:00

fix for 149186 - prevent upload during download via "ignore file" for temp file listner

This commit is contained in:
David McKnight 2006-08-10 13:07:39 +00:00
parent d94d5ac9f3
commit d507b8b380

View file

@ -137,8 +137,10 @@ public class UniversalFileTransferUtility
try
{
// copy remote file to workspace
SystemUniversalTempFileListener listener = SystemUniversalTempFileListener.getListener();
listener.addIgnoreFile(tempFile);
srcFS.download(srcFileOrFolder, tempFile, SystemEncodingUtil.ENCODING_UTF_8, monitor);
listener.removeIgnoreFile(tempFile);
if (!tempFile.exists() && !tempFile.isSynchronized(IResource.DEPTH_ZERO))
{
// eclipse doesn't like this if the resource appears to be from another project
@ -273,6 +275,7 @@ public class UniversalFileTransferUtility
{
if (srcFileOrFolder.isFile()) // file transfer
{
IFile tempFile = copyRemoteFileToWorkspace(srcFileOrFolder, monitor);
resultSet.addResource(tempFile);
}