projects
/
BackupPC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Changes in preparation for 3.2.0beta1...
[BackupPC.git]
/
lib
/
BackupPC
/
PoolWrite.pm
diff --git
a/lib/BackupPC/PoolWrite.pm
b/lib/BackupPC/PoolWrite.pm
index
63f6451
..
f11452e
100644
(file)
--- a/
lib/BackupPC/PoolWrite.pm
+++ b/
lib/BackupPC/PoolWrite.pm
@@
-96,9
+96,10
@@
sub new
#
unlink($fileName) if ( -f $fileName );
if ( $fileName =~ m{(.*)/.+} && !-d $1 ) {
#
unlink($fileName) if ( -f $fileName );
if ( $fileName =~ m{(.*)/.+} && !-d $1 ) {
- eval { mkpath($1, 0, 0777) };
+ my $newDir = $1;
+ eval { mkpath($newDir, 0, 0777) };
if ( $@ ) {
if ( $@ ) {
- push(@{$self->{errors}}, "Unable to create directory $
1
for $self->{fileName}");
+ push(@{$self->{errors}}, "Unable to create directory $
newDir
for $self->{fileName}");
}
}
return $self;
}
}
return $self;