?[9.0B4, 9.0B5] FTP file content synchronization
Moderators: Hacker, petermad, Stefan2, white
?[9.0B4, 9.0B5] FTP file content synchronization
I am using a few Tabs.
In one of them I connect to a FTP server and synchronize a file content, TotalCmd asks me if I want to overwrite the synchronized file.
I choose "Yes" and when the file list is reloaded the TotalCmd shows me the last local folder (the folder used before FTP connection).
I tested the same with the FTPS connection and it works fine, it reloads and shows the folder at FTPS server.
In one of them I connect to a FTP server and synchronize a file content, TotalCmd asks me if I want to overwrite the synchronized file.
I choose "Yes" and when the file list is reloaded the TotalCmd shows me the last local folder (the folder used before FTP connection).
I tested the same with the FTPS connection and it works fine, it reloads and shows the folder at FTPS server.
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Do you see anything in the FTP log? Maybe the connection is lost, or there is some other kind of error causing TC to return to the local directory?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
I am using a passive mode if it helps you.
But the connection seems to be still alive - if I click FTP server button [0] in the disk bar nothing is reconnecting, it shows immediately the file list at FTP server.
Here is the file synchronization log (I had to translate a few terms from Czech to English so may be some of them are little bit different than in original)
But the connection seems to be still alive - if I click FTP server button [0] in the disk bar nothing is reconnecting, it shows immediately the file list at FTP server.
Here is the file synchronization log (I had to translate a few terms from Czech to English so may be some of them are little bit different than in original)
Code: Select all
PWD
257 "/www" is the current directory
Directory
TYPE A
200 Type set to A
PASV
227 Entering Passive Mode (99,99,99,99,192,246).
MLSD
150 Opening ASCII mode data connection for MLSD
Download
Waiting for server...
226 Transfer complete
TYPE I
200 Type set to I
PASV
227 Entering Passive Mode (99,99,99,99,147,50).
RETR phpinfo.php
150 Opening BINARY mode data connection for phpinfo.php (23 bytes)
Download
Waiting for server...
226 Transfer complete
Copied (15.07.2016 18:55:41): ftp://some-ftp-server.com/www/phpinfo.php -> C:\Users\zdenek\AppData\Local\Temp\_tc\phpinfo.php 23 bytes
CWD /www/
250 CWD command successful
PWD
257 "/www" is the current directory
PASV
227 Entering Passive Mode (99,99,99,99,131,70).
STOR phpinfo.php
150 Opening BINARY mode data connection for phpinfo.php
Transferring: 21 bytes
226 Transfer complete
SIZE phpinfo.php
213 21
Copied (15.07.2016 18:55:48): C:\Users\zdenek\AppData\Local\Temp\_tc\phpinfo.php -> ftp://some-ftp-server.com/www/phpinfo.php 21 bytes, 0 kB/s
PWD
257 "/www" is the current directory
CWD /www
250 CWD command successful
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Sorry, I don't see anything bad in the log. I can't reproduce this problem either.
Can anyone else reproduce it?
Can anyone else reproduce it?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
I prepared a video I hope it is well visible
https://youtu.be/PekDLIPCloc
If you can't reproduce it, it must be something on my computer..
New operating system Windows 10? Or for example an old ini file?
https://youtu.be/PekDLIPCloc
If you can't reproduce it, it must be something on my computer..
New operating system Windows 10? Or for example an old ini file?
No luck here, I'm doing exactly the same thing and it does not happen.
But you can easily test if it's something in your current ini files. Start TC with command line parameters like this:
totalcmd64.exe /i=c:\test\tc.ini /f=c:\test\ftp.ini
It will use specified ini files (it will create new ones if they don't exist) and won't touch your regular ones.
But you can easily test if it's something in your current ini files. Start TC with command line parameters like this:
totalcmd64.exe /i=c:\test\tc.ini /f=c:\test\ftp.ini
It will use specified ini files (it will create new ones if they don't exist) and won't touch your regular ones.
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
What the video shows isn't filesync, it's "Compare by content". It looks like you use the editor and then re-upload the file by saving it?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
You are right. It is "Compare by content" - I am sorry for unclear specification. I use it for the file content synchronization 
I always check the modification in the files, click the "Edit mode" button and manually synchronize the content of files (on video from right panel to left panel).
After that I save the left file and totalcmd offers me to transfer this file (from a temporary copy) to FTP.
I give Yes, the file is uploaded but the left totalcmd panel is switched to the local folder.
I tried also the empty ini files (totalcmd64.exe /i=c:\test\tc.ini /f=c:\test\ftp.ini) and it is also switching to a local folder.
I tested it on working PC with Windows 10 x64 + (TC9b5x64 and TC9b6x64), in the passive as well as in active mode and the result is still the same. With the same configuration I tested als FTPS and it do also the same.
I tried it also on my home PCs - one with Win7x64 (TC9b5x64), second with Wine in Linux and there stay the FTP folder in the left panel.
So it seems to be caused by Windows 10.
Now I am upgrading the PC with Win7 to Win10 so when it is done I will let you know if there is the same problem.

I always check the modification in the files, click the "Edit mode" button and manually synchronize the content of files (on video from right panel to left panel).
After that I save the left file and totalcmd offers me to transfer this file (from a temporary copy) to FTP.
I give Yes, the file is uploaded but the left totalcmd panel is switched to the local folder.
I tried also the empty ini files (totalcmd64.exe /i=c:\test\tc.ini /f=c:\test\ftp.ini) and it is also switching to a local folder.
I tested it on working PC with Windows 10 x64 + (TC9b5x64 and TC9b6x64), in the passive as well as in active mode and the result is still the same. With the same configuration I tested als FTPS and it do also the same.
I tried it also on my home PCs - one with Win7x64 (TC9b5x64), second with Wine in Linux and there stay the FTP folder in the left panel.
So it seems to be caused by Windows 10.
Now I am upgrading the PC with Win7 to Win10 so when it is done I will let you know if there is the same problem.
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
How long do you edit the two files in the compare tool? Some servers have a timeout of a few minutes - if it takes you longer, they will kick you out.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Maybe I just misunderstand what you do? Do you select a file in the left and right panel and choose "Compare by content", edit the files, and then save them?
If yes, when exactly is the directory lost?
If yes, when exactly is the directory lost?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Select a file in the left and right panel, choose "Compare by content", edit the file on FTP server, and then save it.
Close the "Compare by content" tool and there is shown a dialog window with question if you want to transfer the modified file to the FTP server.
Choose "Yes", the file transfer is starting and when it is done, the FTP directory is lost.
Close the "Compare by content" tool and there is shown a dialog window with question if you want to transfer the modified file to the FTP server.
Choose "Yes", the file transfer is starting and when it is done, the FTP directory is lost.