How to automatically set permissions on image files?

Advertisement

countytime
Joined:
Posts:
9

How to automatically set permissions on image files?

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?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,815
Location:
Prague, Czechia

Re: How to automatically set permissions on image files?

WinSCP does not support filetype-specific rules.

Reply with quote

countytime
Joined:
Posts:
9

Right. I guess I'm misunderstanding it, because it says

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?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,815
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

Reply with quote

countytime
Joined:
Posts:
9

martin 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.

Reply with quote

Advertisement

You can post new topics in this forum