1 # Copyright 2002-2007 Interchange Development Group and others
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version. See the LICENSE file for details.
8 # $Id: unlink_file.coretag,v 1.5 2007-03-30 23:40:54 pajamian Exp $
10 UserTag unlink_file Order name prefix
11 UserTag unlink_file PosNumber 2
12 UserTag unlink_file Version $Revision: 1.5 $
13 UserTag unlink_file Routine <<EOR
15 my ($file, $prefix) = @_;
16 #::logDebug("got to unlink: file=$file prefix=$prefix");
17 $prefix = 'tmp/' unless $prefix;
18 return if Vend::File::absolute_or_relative($file);
19 return unless $file =~ /^$prefix/;
20 #::logDebug("got to unlink: $file qualifies");