i have a strange issue with TC (7.56a). when i download a file from server at work, it adds empty lines to the file (it's a text file, but not always with TXT extension). in the end of file, in the middle - i can't really tell why. I tried to remove all my personal settings - didn't help. I tried to copy a working TC from my co-worker - didn't help. I tried to look for it on the internet - i couldn't find anything on that. what can be a problem?
I use a Total Commander 7.56a 32-bit, windows 7 ultimate with SP1, 64-bit.
Why TC add empty line to files on FTP download?
Moderators: Hacker, petermad, Stefan2, white
- sqa_wizard
- Power Member
- Posts: 3897
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
- ghisler(Author)
- Site Admin
- Posts: 50929
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Are they UTF-16 Unicode files? If yes, transfer mode "text" will not do these files any good. Also when the file was uploaded in binary mode (Windows line breaks) and is then downloaded in text mode, you will get two and a half line breaks. Btw, this is done by the server side when choosing text transfer mode, not by TC.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50929
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Binary mode shouldn't change the files. Maybe you aren't using FTP? are you using a plugin like WebDAV?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50929
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Can you post a log file of the ftp connection when the error happens, please? Maybe there is an error from the server. You can enable FTP logging in Configuration - Options - FTP. Thanks.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com