Topic "Question:Custom Permission Setting Depending File Types"

Author Message
Silvia1000
[View user's profile]

Joined: 2008-08-12
Posts: 7
On WinSCP、How can I predefine permissions of uploading files depend on its file types , such as .html .php or a folder? I want to predefine UID GID Sticky bit also. These files with different file types and folders will be uploaded at once rather than separately.

For example, I am uploading a folder which name is test_folder. In the test_folder, there is a php file which name is test_php.php and a html file which name is test_html.html. I want to set WinSCP so that ,at the completion of the upload, the permission of test_folder will be 2755 (2 sand for GID), the permission of test_php.php will be 0755 and the permission of test_html.html will be 0644. These folders and files will be uploaded at once rather than separately.

I think I can do custom permission setting depending file types at Transfer setting present editor on the WinSCPs Preferences Dialog(Transfer Presets tab).
I read the documentation bellow:
http://winscp.net/eng/docs/ui_transfer_preset
However, I was not able to figure out how I can actually set the editor to do what I want to do.

Please someone tell me step by step explanation of how can I do what I want to do above, or tell me URL of site which explain the way of doing it.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
WinSCP does not allow that. The presets can be set per directory only, not per file.
_________________
Martin Prikryl
Silvia1000
[View user's profile]

Joined: 2008-08-12
Posts: 7
prikryl wrote:
WinSCP does not allow that. The presets can be set per directory only, not per file.

prikryl ,thanks for answering my question.

I understand I can not predefine permission per file.
However, after uploading files, is there way to change permission of a set of files in the same directory at once?
I think there is because it is written on the page bellow:
http://winscp.net/eng/docs/task_properties
But there is no explanation of how to do it.

Would someone tell me how to do it?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Silvia1000 wrote:
I think there is because it is written on the page bellow:
http://winscp.net/eng/docs/task_properties
But there is no explanation of how to do it.

It is explained on that page and on the linked pages (properties dialog particularly)
_________________
Martin Prikryl
Guest




prikryl ,thanks for answering my question.

I think I can change permission of a set of files in the same directory at once now.
I will try it.
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