Keep remote directory up to date
The issue appears to be in the timestamps of files. Either please add an option to keep the directory up to date based on file size (just like when running Synchronization) or fix this issue somehow. From the logs, I can see that the the time returned from running
MDTM /site/wwwroot/.deployment 213 20150601202053
Log is pasted below (some parts were redacted for security reasons).
-------------------------------------------------------------------------- WinSCP Version 5.7.4 (Build 5553) (OS 10.0.10130 - Windows 10 Pro Insider Preview) Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\ Log level: Normal Local account: XXXXXXXXXXXXXXX Working directory: C:\Program Files (x86)\WinSCP Process ID: 2148 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe" Time zone: Current: GMT+2, Standard: GMT+1 (Central Europe Standard Time), DST: GMT+2 (Central Europe Daylight Time), DST Start: 3/29/2015, DST End: 10/25/2015 Login time: Sunday, June 21, 2015 23:35:13 -------------------------------------------------------------------------- Session name: XXXXXXXXXXXXXXXXXXXXXX (Site) Host name: waws-prod-am2-015.ftp.azurewebsites.windows.net (Port: 21) User name: XXXXXXXXXXXXXXXX (Password: Yes, Key file: No) Transfer Protocol: FTP Ping type: C, Ping interval: 30 sec; Timeout: 15 sec Disable Nagle: No Proxy: none Send buffer: 262144 UTF: 2 FTP: FTPS: Explicit TLS; Passive: Yes [Force IP: A]; MLSD: A [List all: A] Session reuse: Yes TLS/SSL versions: TLSv1.0-TLSv1.2 Local directory: default, Remote directory: /site/wwwroot, Update: No, Cache: No Cache directory changes: No, Permanent: Yes Timezone offset: 0h 0m -------------------------------------------------------------------------- Connecting to waws-prod-am2-015.ftp.azurewebsites.windows.net ... Connected with waws-prod-am2-015.ftp.azurewebsites.windows.net, negotiating TLS connection... 220 Microsoft FTP Service AUTH TLS 234 AUTH command ok. Expecting TLS Negotiation. Verifying certificate for "" with fingerprint 94:af:11:07:46:13:1b:9d:ef:b4:3c:77:23:c6:43:1a:06:1a:cd:76 and 20 failures Certificate verified against Windows certificate store Certificate subject alternative name "waws-prod-am2-015.ftp.azurewebsites.windows.net" matches hostname Using TLSv1.2, cipher TLSv1/SSLv3: ECDHE-RSA-AES256-SHA384, 2048 bit RSA TLS connection established. Waiting for welcome message... USER XXXXXXXXXXXXXX 331 Password required PASS ********** 230 User logged in. SYST 215 Windows_NT FEAT 211-Extended features supported: LANG EN* UTF8 AUTH TLS;TLS-C;SSL;TLS-P; PBSZ PROT C;P; CCC HOST SIZE MDTM REST STREAM 211 END OPTS UTF8 ON 200 OPTS UTF8 command successful - UTF8 encoding now ON. PBSZ 0 200 PBSZ command successful. PROT P 200 PROT command successful. Connected -------------------------------------------------------------------------- Using FTP protocol. Doing startup conversation with host. PWD 257 "/" is current directory. Changing directory to "/site/wwwroot". CWD /site/wwwroot 250 CWD command successful. Getting current directory name. PWD 257 "/site/wwwroot" is current directory. Retrieving directory listing... TYPE A 200 Type set to A. PASV 227 Entering Passive Mode (23,100,2,128,40,41). LIST -a Connecting to 23.100.2.128:10281 ... 150 Opening ASCII mode data connection. Session ID reused TLS connection established 226 Transfer complete. 06-01-15 08:20PM 28 .deployment 06-02-15 01:31PM 2127 app.php 06-02-15 07:43AM 642 composer.json 06-02-15 08:39AM 19669 composer.lock 06-01-15 09:35PM 1104838 composer.phar 04-26-15 09:48AM <DIR> css 04-26-15 09:48AM <DIR> img 06-02-15 02:05PM <DIR> includes 03-14-15 09:19AM 33 index.php 04-26-15 09:48AM <DIR> js 06-02-15 05:02PM <DIR> libs 04-26-15 09:48AM <DIR> other 06-02-15 10:57AM <DIR> pages 01-06-15 07:58AM 1096 web.config Directory listing successful Detecting timezone difference... Retrieving file information... PWD 257 "/site/wwwroot" is current directory. CWD /site/wwwroot/.deployment 550 The system cannot find the path specified. TYPE I 200 Type set to I. SIZE /site/wwwroot/.deployment 213 28 MDTM /site/wwwroot/.deployment 213 20150601202053 Retrieving file information successful Timezone difference of -2 detected using file /site/wwwroot/.deployment ..;D;0;1899-12-30T01:00:00.000Z;"" [0];"" [0];---------;0 .deployment;-;28;2015-06-01T20:20:00.000Z;"" [0];"" [0];---------;2 app.php;-;2127;2015-06-02T13:31:00.000Z;"" [0];"" [0];---------;0 composer.json;-;642;2015-06-02T07:43:00.000Z;"" [0];"" [0];---------;0 composer.lock;-;19669;2015-06-02T08:39:00.000Z;"" [0];"" [0];---------;0 composer.phar;-;1104838;2015-06-01T21:35:00.000Z;"" [0];"" [0];---------;0 css;D;0;2015-04-26T09:48:00.000Z;"" [0];"" [0];---------;0 img;D;0;2015-04-26T09:48:00.000Z;"" [0];"" [0];---------;0 includes;D;0;2015-06-02T14:05:00.000Z;"" [0];"" [0];---------;0 index.php;-;33;2015-03-14T10:19:00.000Z;"" [0];"" [0];---------;0 js;D;0;2015-04-26T09:48:00.000Z;"" [0];"" [0];---------;0 libs;D;0;2015-06-02T17:02:00.000Z;"" [0];"" [0];---------;0 other;D;0;2015-04-26T09:48:00.000Z;"" [0];"" [0];---------;0 pages;D;0;2015-06-02T10:57:00.000Z;"" [0];"" [0];---------;0 web.config;-;1096;2015-01-06T08:58:00.000Z;"" [0];"" [0];---------;0 Startup conversation with host finished. Not refreshing directory, caching is off. Sending dummy command to keep session alive. REST 0 350 Restarting at 0. Sending dummy command to keep session alive. TYPE I 200 Type set to I. Sending dummy command to keep session alive. TYPE A 200 Type set to A. Sending dummy command to keep session alive. PWD 257 "/site/wwwroot" is current directory. Dummy directory read to keep session alive. Retrieving directory listing... TYPE A 200 Type set to A. PASV 227 Entering Passive Mode (23,100,2,128,40,42). LIST -a Connecting to 23.100.2.128:10282 ... 150 Opening ASCII mode data connection. Session ID reused TLS connection established 226 Transfer complete. 06-01-15 08:20PM 28 .deployment 06-02-15 01:31PM 2127 app.php 06-02-15 07:43AM 642 composer.json 06-02-15 08:39AM 19669 composer.lock 06-01-15 09:35PM 1104838 composer.phar 04-26-15 09:48AM <DIR> css 04-26-15 09:48AM <DIR> img 06-02-15 02:05PM <DIR> includes 03-14-15 09:19AM 33 index.php 04-26-15 09:48AM <DIR> js 06-02-15 05:02PM <DIR> libs 04-26-15 09:48AM <DIR> other 06-02-15 10:57AM <DIR> pages 01-06-15 07:58AM 1096 web.config Directory listing successful