problem editing remote files via ftp

Advertisement

willy
Joined:
Posts:
1

problem editing remote files via ftp

LOVE WinSCP! FTP is a great addition.

WinSCP 4b Build 342, FTP protocol, Norton interface. When editing remote text file on ftp server, the temp file returned to the server did not contain lines inserted at top of file. For example, inserting 2 new lines of text at the top of the file never made it back to the file on the server. Instead, the uploaded file would contain duplicates of the last 2 lines. Internal and eternal editor produced same result. Not a problem with sftp editing. Return ftp upload appears to use an APPE command while Filezilla appears to use STOR when doing same function.

#######
LOG
#######
File: "/www/cgi-bin/TestEditFile.txt"
Copying "/www/cgi-bin/TestEditFile.txt" to local directory started.
Ascii transfer mode selected.
Starting download of /www/cgi-bin/TestEditFile.txt
TYPE A
200 TYPE is now ASCII
PORT 192,168,1,15,17,255
200 PORT command successful
RETR TestEditFile.txt
150 Connecting to port 4608
226-File successfully transferred
226 0.000 seconds (measured here), 371.50 Kbytes per second
Download successful
Copying 1 files/directories to remote directory "/www/cgi-bin"
PrTime: Yes; PrRO: Yes; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: N (102400); CalcS: Yes; Mask:
TM: A; ClAr: No; ExclM(No):
AscM: *.*html; *.htm; *.txt; *.php*; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
File: "C:\DOCUME~1\user\LOCALS~1\Temp\scp42156\TestEditFile.txt"
Copying "C:\DOCUME~1\user\LOCALS~1\Temp\scp42156\TestEditFile.txt" to remote directory started.
Ascii transfer mode selected.
Starting upload of C:\DOCUME~1\user\LOCALS~1\Temp\scp42156\TestEditFile.txt
TYPE A
200 TYPE is now ASCII
PORT 192,168,1,15,18,0
200 PORT command successful
APPE TestEditFile.txt
150 Connecting to port 4609
226-File successfully transferred
226 0.033 seconds (measured here), 0.82 Kbytes per second
Upload successful
#########################################

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,542
Location:
Prague, Czechia

Re: problem editing remote files via ftp

Thanks for your report. I'll check it.
_________________
Martin Prikryl

Reply with quote

Guest

Hello,

same thing here.
Examples:
A text-file on the server, content:
1
2
3
4
5
Edit the file in the internal or (any) external editor, make the following changes:
x1
2
3
4
5
After saving the result on the server will be
1
2
3
4
5
4
5
If you append something to the file, e.g.
1
2
3
4
5
x
y
the result will be
1
2
3
4
54
5
x
y

Reply with quote

Advertisement

You can post new topics in this forum