Martin
Love your work. Seriously. Fantastic to have WinSCP for free.
I'm impressed to keep finding little options that perfectly solve my problem. Most recently I found "Daylight saving time" in the "Environment" section of Session options. Gold. Daylight saving is the bane of my life, and now it's all fixed simply with "Server works in UTC time". Now all the servers I've built using "RTC uses UTC" all work together nicely with WinSCP sychronisation.
I'm recently having problems with one of my development servers. We have several developers all working on the same files at different times, so I have put all users into primary group "users" and set Samba to add g+w and g+wx to everything. I've even set Apache with primary group "users" so we can all play together and no-one complains.
Light shone from the heavens when I found "Upload options" in the "Transfer" section in Preferences. "Add X to directories" is a fantastically smart thing to add, very happy with that. I saw someone else's post here commenting on how perfect that all is.
One minor issue though is that this pretty much only works when the logged-in user is the user who created the file in the first place (i.e. only works on files owned by the logged in user). Even amongst users in the same primary group, where all files and directories are g+w, we get these "set mode: operation failed" errors.
Now I know this is not your fault, as these are the rules of "chmod", not WinSCP, but there is a solution that might be relatively easy for you to implement.
I propose a new checkbox near "Add X to directories". I'm not sure which is better, but I'd suggest either "Only on files owned by me" or "New files only".
This way if Dude A creates a file, it's owned by him and WinSCP sets it write-by-group. Then Dude B logs in and modifies the same file, WinSCP doesn't try to set mode on the file (which would fail).
Alternatively, which I only just figured out now, why not completely disable set mode or set time for any transfer if the file exists and the file owner doesn't match the logged in username? In my understanding of Unix permissions, you are never able to set mode unless you own the file. Possibly an easier solution?
Either way, if you were able to fix this, it would leave no holes in my little empire here, where people could put new files in place with Samba, Apache could put things down into the filesystem (and immediately chmod them g+w), WinSCP would join in and we could all still play together.
Hope this all makes sense, and I hope it's a simple enough thing for you to add in.
Thanks again, WinSCP is a fantastic piece of software.
Manta