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:
parent
bf3c70428d
commit
39601be439
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue