Topic ""option include" functionality"

Author Message
rclerkin
[View user's profile]

Joined: 2009-07-20
Posts: 6
Location: Ireland
Hi,

I've been trying to figure out the option include and exclude features of winscp.
I've been having a conversation with myself over at this topic which describes what I've seen.

I believe the "option include" feature works in a counter intuitive way as it doesn't seem to include files and folders recurrsively.

i.e.
When you exclude a directory eveything within that directory is excluded
When you include a directory nothing within that directory is included

If I am correct with the above statements then I'd like to suggest that the include functionality be changed so that eveything within the included directory is also included
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
rclerkin wrote:
If I am correct with the above statements then I'd like to suggest that the include functionality be changed so that eveything within the included directory is also included

Maybe it is not intuitive, but it is quite flexible. It allows both recursive and non-recursive inclusion.
_________________
Martin Prikryl
rclerkin
[View user's profile]

Joined: 2009-07-20
Posts: 6
Location: Ireland
I see your point on the flexibility but maybe it would be better to specify if there should be recurrsion on the command line with a parameter to the "option include". Something like;

option include "<dir1>; <dir2>" R
for recurrsion or;

option include "<dir1>; <dir2>" NR

for No Recurrsion. The recurrsion parameter would be the default if nothing is specified.
I think this would make it more intuitive while keeping the flexibility.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
This way you cannot make dir1 recursive and dir2 non-recursive. It is hard to find a syntax for this without breaking the backwards compatibility too much. For the same reason I cannot make recursive mode the default one.
_________________
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