exclude/include filter

Advertisement

asphodel
Guest

exclude/include filter

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

Reply with quote

Advertisement

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

Re: exclude/include filter

I guess that wildcards is what you need:
get *.html *.png d:\www\*.bak
See Examples section of "help get".
_________________
Martin Prikryl

Reply with quote

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

Reply with quote

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

Reply with quote

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

Reply with quote

Advertisement

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

OK, I'll consider adding the include filter.
_________________
Martin Prikryl

Reply with quote

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

ME TOO!
It's added already!
_________________
Martin Prikryl

Reply with quote

Advertisement

jockel
Joined:
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 ;-)
What am I doing wrong ?

Thank you
Jockel
(Using WINSCP 3.8.2)

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
29,501
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 ;-)
What am I doing wrong ?
Correct mask is "*/; *.png", to select all folders and all png files.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum