… | |
… | |
395 | } |
395 | } |
396 | |
396 | |
397 | # remove temporary directory (and its contents) |
397 | # remove temporary directory (and its contents) |
398 | if ($PreserveTempFiles) { |
398 | if ($PreserveTempFiles) { |
399 | warn "ImageGenerator: preserved temp files in working directory '$wd'.\n"; |
399 | warn "ImageGenerator: preserved temp files in working directory '$wd'.\n"; |
|
|
400 | chmod (0775,$wd); |
|
|
401 | chmod (0664,<$wd/*>); |
400 | } else { |
402 | } else { |
401 | removeTempDirectory($wd); |
403 | removeTempDirectory($wd); |
402 | } |
404 | } |
403 | } |
405 | } |
404 | $self->update_depth_cache() if $self->{store_depths}; |
406 | $self->update_depth_cache() if $self->{store_depths}; |