Added check for a directory whith original images.
This commit is contained in:
parent
014f80624f
commit
1e42ed051e
1 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,8 @@ my $IMAGE_DIR = app->static->root . $IMAGE_BASE;
|
||||||
# Create directory if not exists
|
# Create directory if not exists
|
||||||
unless (-d $IMAGE_DIR) {
|
unless (-d $IMAGE_DIR) {
|
||||||
mkpath $IMAGE_DIR or die "Cannot create directory: $IMAGE_DIR";
|
mkpath $IMAGE_DIR or die "Cannot create directory: $IMAGE_DIR";
|
||||||
|
}
|
||||||
|
unless (-d $IMAGE_DIR.$ORIG_DIR) {
|
||||||
mkpath $IMAGE_DIR.$ORIG_DIR or die "Cannot create directory: $IMAGE_DIR$ORIG_DIR";
|
mkpath $IMAGE_DIR.$ORIG_DIR or die "Cannot create directory: $IMAGE_DIR$ORIG_DIR";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue