Topic "How to automatically set permissions on image files?"

Author Message
countytime
[View user's profile]

Joined: 2015-05-05
Posts: 9
I'd like to automatically set media files to 644 because it would save me a lot of time and it's relatively safe. I tried setting up a transfer rule with a file mask for *.png, *.jpg, etc:



But it doesn't do anything. How would I go about doing this?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
WinSCP does not support filetype-specific rules.
countytime
[View user's profile]

Joined: 2015-05-05
Posts: 9
Oh, I assumed that's what the file mask was for... what's the file mask do, then?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
See https://winscp.net/eng/docs/ui_transfer_custom#other
countytime
[View user's profile]

Joined: 2015-05-05
Posts: 9
Right. I guess I'm misunderstanding it, because it says

Quote:
In the File mask you can specify file mask to select/deselect files (or file types) and directories for the transfer. The option also selects files for synchronization and Keep remote directory up to date function.
Press Edit button to edit the file mask in File mask dialog.


So if I had a mask for those files, and then selected the permissions, it wouldn't set the permissions on those file types when I uploaded them?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
countytime wrote:
So if I had a mask for those files, and then selected the permissions, it wouldn't set the permissions on those file types when I uploaded them?

Sure. But it won't upload the other files at all.
_________________
Martin Prikryl
countytime
[View user's profile]

Joined: 2015-05-05
Posts: 9
prikryl wrote:
countytime wrote:
So if I had a mask for those files, and then selected the permissions, it wouldn't set the permissions on those file types when I uploaded them?

Sure. But it won't upload the other files at all.


I think I see. I thought you could set different rules; one rule would be to set permissions on image files, the other rule takes care of everything else. Like this:



My intention was to have the "media" rule catch media files and set them to 644.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
WinSCP cannot do that.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License