diff --git a/Blacklight/processing/post/ProcessAdditional.php b/Blacklight/processing/post/ProcessAdditional.php index f3aeb4d04..522fee58f 100755 --- a/Blacklight/processing/post/ProcessAdditional.php +++ b/Blacklight/processing/post/ProcessAdditional.php @@ -590,12 +590,9 @@ class ProcessAdditional } if (! File::isDirectory($this->_mainTmpPath)) { - $old = umask(0777); if (! File::makeDirectory($this->_mainTmpPath, 0777, true, true) && ! File::isDirectory($this->_mainTmpPath)) { throw new \RuntimeException(sprintf('Directory "%s" was not created', $this->_mainTmpPath)); } - @chmod($this->_mainTmpPath, 0777); - @umask($old); } if (! File::isDirectory($this->_mainTmpPath)) { @@ -774,7 +771,7 @@ class ProcessAdditional if (\in_array($path, $ignoredFolders, false)) { return; } - foreach (File::files($path) as $file) { + foreach (File::allFiles($path) as $file) { $this->_recursivePathDelete($file, $ignoredFolders); } @@ -795,12 +792,9 @@ class ProcessAdditional // Per release defaults. $this->tmpPath = $this->_mainTmpPath.$this->_release->guid.DS; if (! File::isDirectory($this->tmpPath)) { - $old = umask(0777); if (! File::makeDirectory($this->tmpPath, 0777, true, true) && ! File::isDirectory($this->tmpPath)) { throw new \RuntimeException(sprintf('Directory "%s" was not created', $this->tmpPath)); } - @chmod($this->tmpPath, 0777); - @umask($old); if (! File::isDirectory($this->tmpPath)) { $this->_echo('Unable to create directory: '.$this->tmpPath, 'warning'); diff --git a/Changelog b/Changelog index 7c782ad55..222fbbb68 100755 --- a/Changelog +++ b/Changelog @@ -1,3 +1,5 @@ +2018-12-07 DariusIII + * Chg: Update PPA class _rersivePathDelete function 2018-12-05 DariusIII * Chg: Update laravel/framework to version 5.7.16 * Chg: Catch ArtistNotFoundException