- $dir =~ s{/[^/]*$}{};
- $file =~ s{/[^/]*$}{};
- return if ( -d $file );
- mkpath($file, 0, 0777);
+ $dir =~ s{/[^/]*$}{};
+ $fullPath =~ s{/[^/]*$}{};
+ return if ( -d $fullPath );
+ mkpath($fullPath, 0, 0777);
+ $Attrib{$dir} = BackupPC::Attrib->new({ compress => $Compress })
+ if ( !defined($Attrib{$dir}) );