aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/ssh/sftpchannel.cpp
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2018-10-10 10:37:40 +0200
committerUlf Hermann <[email protected]>2018-10-12 08:36:33 +0000
commit51562b55e4dbbc2f95e06e26728b0ecee877d1c3 (patch)
treed2a6f42efe11990de46f474243e3c6d4b89e837b /src/libs/ssh/sftpchannel.cpp
parente5d1bc9ccea68ecf92f8de5c1ff7efc2f5548dbe (diff)
Ssh: Add mtime to QSshFileInfo
We will need it for checking if a file needs to be deployed. Change-Id: I4dc4e3a43ea161b27319ee2771806c1d52679856 Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'src/libs/ssh/sftpchannel.cpp')
-rw-r--r--src/libs/ssh/sftpchannel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libs/ssh/sftpchannel.cpp b/src/libs/ssh/sftpchannel.cpp
index 2e397ea404e..59c6ea66ec4 100644
--- a/src/libs/ssh/sftpchannel.cpp
+++ b/src/libs/ssh/sftpchannel.cpp
@@ -921,6 +921,10 @@ void SftpChannelPrivate::attributesToFileInfo(const SftpFileAttributes &attribut
if (attributes.permissions & 00400) // S_IRUSR
fileInfo.permissions |= QFile::ReadUser | QFile::ReadOwner;
}
+ if (attributes.timesPresent) {
+ fileInfo.mtime = attributes.mtime;
+ fileInfo.mtimeValid = true;
+ }
}
void SftpChannelPrivate::removeTransferRequest(const JobMap::Iterator &it)