Topic "exclude/include filter"

Author Message
asphodel

Guest


Is it possible to put in a switch so that when scping, you can specify only the type of files you want to transfer instead of having a large list for exclusion of files. I only want to scp 1 file type and as a result must make a large list for exclude field
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
I guess that wildcards is what you need:
Code:
get *.html *.png d:\www\*.bak

See Examples section of "help get".
_________________
Martin Prikryl
Asphodel

Guest


Is that for the command line or this for the norton interface. I was refering to the "exclude mask" on the copy window.

Thanks for the prompt reply
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Sorry, I've misunderstood. So why don't you select just files you want to copy? Or do you need recursive copy of one file type only?
_________________
Martin Prikryl
Asphodel

Guest


I am copying large directory structures which have some massive data files and lots of run files. I only want to transfer the small log file that is contained in each directory. It takes a long time just to go to every directory and copy the file across so I use a really long exclude list to filter out the files I need. I thought it might be possible to switch between exlcude and include when using the the mask on your next release.

Thanks
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
OK, I'll consider adding the include filter.
_________________
Martin Prikryl
Guest




Thanks, I would really find it useful...Thanks all your help.
Guest




Anonymous wrote:
Thanks, I would really find it useful...Thanks all your help.


ME TOO!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Quote:
ME TOO!

It's added already!
_________________
Martin Prikryl
jockel
[View user's profile]

Joined: 2007-03-03
Posts: 1
Hi,
in winscp, remote server side, I have marked a folder, pressed "copy" and
as the mask I input */*.png as include mask. Expecting, that all *.png files
from the marked folder and subfolders will be copied, preserving(copying) the
remotely existing folder structure to the local PC.
But nothing is copied...yes, there are *.png files Wink
What am I doing wrong ?

Thank you
Jockel
(Using WINSCP 3.8.2)
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
jockel wrote:
in winscp, remote server side, I have marked a folder, pressed "copy" and
as the mask I input */*.png as include mask. Expecting, that all *.png files
from the marked folder and subfolders will be copied, preserving(copying) the
remotely existing folder structure to the local PC.
But nothing is copied...yes, there are *.png files Wink
What am I doing wrong ?

Correct mask is "*/; *.png", to select all folders and all png files.
_________________
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