cancel / erase existing file

Advertisement

seb
Guest

cancel / erase existing file

Hello all,
debian server
We are 2 winscp users, "seb" and "geo", in the same group "group1"

when "seb" create file "test_seb.txt" on server with winscp , it is OK, file has "seb" as owner and "group1" as group
when "geo" create file "test_geo.txt" on server with winscp , it is OK, file has "geo" as owner and "group1" as group

now when "seb" wants to update "test_geo.txt", (download it on PC, modify it, and upload it in the same place on server), update is OK but owner don't change, it should be transform by "seb"

So with WinScp :

1 - download file
2 - modify file
3 - upload file to same place , overwrite the old one, to update it
=> owner don't change

but

1 - download file
2 - modify file
3 - delete old file
4 - upload file to same place
=> OK owner change


So is there an option to tell winscp : When there is overwriting => delete old one and replace by new one ?

Regards

Reply with quote

Advertisement

smichele
Joined:
Posts:
1
Location:
france

Found !

I create a recycle bin on server with full rights 777 "/home/user/custom_recycle_bin/"

on my connection :

1 - > edit > advanced options
2 - On the left recycle bin > check "put overwriting file in bin (SFTP)
3 - Replace "/tmp" by the new path I ve just created "/home/user/custom_recycle_bin/"

then in general WinScp OPtion

on the left panel : transfert
then edit the "defaut" params
check "changer permissions" to RW-RW-R--


it works

each time, user "seb" and "geo" update files , the last "modifier man" name is shown on the owner column on server panel

regards
Seb

Reply with quote

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

Re: cancel / erase existing file

Thanks for sharing your solution.
Thanks will work indeed, though I would recommend you to enable Transfer to temporary filename instead.
I will spare you from having overwritten files stack up in the "recycle bin" (unless you really want that).
https://winscp.net/eng/docs/resume#automatic
https://winscp.net/eng/docs/ui_pref_resume
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum