From bf0daae7441ca3bbaa346bfbeb937027d4589a59 Mon Sep 17 00:00:00 2001 From: stan Date: Fri, 29 Nov 2002 11:05:55 +0000 Subject: [PATCH] Added facility to not upload analysis files. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@128 e3e1d417-86f3-4887-817a-d78f3d33393f --- scripts/zmfilter.pl.z | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/zmfilter.pl.z b/scripts/zmfilter.pl.z index d4673922b..696d53367 100755 --- a/scripts/zmfilter.pl.z +++ b/scripts/zmfilter.pl.z @@ -26,6 +26,7 @@ use Net::FTP; use constant ARCH_FORMAT => 'tar'; # This can be 'tar' or 'zip' use constant ARCH_COMPRESS => '0'; # Whether to compress archive files +use constant ARCH_ANALYSE => '0'; # Whether to include the analysis files in the archive, bigger but slower use constant FTP_HOST => 'raq182.uk2net.com'; use constant FTP_USER => 'admin'; @@ -148,7 +149,7 @@ while( 1 ) if ( $filter->{AutoUpload} ) { my $arch_file = FTP_LOC_DIR.$filter->{MonitorName}.'-'.$event->{Id}; - my $arch_image_path = "$filter->{MonitorName}/$event->{Id}/*.jpg"; + my $arch_image_path = "$filter->{MonitorName}/$event->{Id}/".(ARCH_ANALYSE?'*':'capture*').".jpg"; my $arch_error; if ( ARCH_FORMAT eq "zip" )