1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-10 12:03:16 +02:00

when deciding to use cached file, make sure the file transfer mode hasn't changed

This commit is contained in:
David McKnight 2006-06-01 22:23:13 +00:00
parent bf3c70428d
commit 39601be439

View file

@ -116,8 +116,10 @@ public class UniversalFileTransferUtility
{
// ;if they're the same, just use temp file
long remoteModifiedStamp = srcFileOrFolder.getLastModified();
if (storedModifiedStamp == remoteModifiedStamp)
boolean usedBin = properties.getUsedBinaryTransfer();
boolean shouldUseBin = srcFileOrFolder.isBinary();
if (storedModifiedStamp == remoteModifiedStamp && (usedBin == shouldUseBin))
{
return tempFile;
}