Topic "recursive chmod of files with the same extension"

Author Message
tataro

Guest


Hello,
I want to change the permission (chmod) of some files with the same file extension,
which are not in the same directory.
More than 50 files somewhere in 100 directories.

I have no permission to unix console, but to FTP.

How can I do this?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
There's no easy way to do this with WinSCP (nor any other tool I know).

It's easy to recursively iterate the tree finding files matching a mask using WinSCP .NET assembly from PowerShell script.
See for example http://winscp.net/eng/docs/library_example_recursive_search_text

But WinSCP .NET assembly does not support changing permissions, only scripting interface does.
But you can use the .NET assembly to search for the files and make it generate chmod scripting command for each matching file. And then execute the script.
_________________
Martin Prikryl
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