# Craig Barratt <cbarratt@users.sourceforge.net>
#
# COPYRIGHT
-# Copyright (C) 2001 Craig Barratt
+# Copyright (C) 2001-2003 Craig Barratt
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
#
#========================================================================
#
-# Version 1.5.0, released 2 Aug 2002.
+# Version 3.0.0beta1, released 30 Jul 2006.
#
# See http://backuppc.sourceforge.net.
#
use constant BPC_FTYPE_FIFO => 6;
use constant BPC_FTYPE_SOCKET => 8;
use constant BPC_FTYPE_UNKNOWN => 9;
+use constant BPC_FTYPE_DELETED => 10;
my @FILE_TYPES = qw(
BPC_FTYPE_FILE
BPC_FTYPE_FIFO
BPC_FTYPE_SOCKET
BPC_FTYPE_UNKNOWN
+ BPC_FTYPE_DELETED
);
#
"fifo",
"?",
"socket",
+ "?",
+ "deleted",
);
#
{
my($a, $fileName, $attrib) = @_;
- $a->{files}{$fileName} = $attrib;
+ if ( !defined($attrib) ) {
+ delete($a->{files}{$fileName});
+ } else {
+ $a->{files}{$fileName} = $attrib;
+ }
}
sub get
{
my($a, $fileName) = @_;
- return $a->{files}{$fileName};
+ return $a->{files}{$fileName} if ( defined($fileName) );
+ return $a->{files};
}
sub fileType2Text