Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
app_dirs_rollback.php
Go to the documentation of this file.
1 <?php
10 $appDirs = ['app', 'pub/media', 'pub', 'var/log', 'var'];
11 foreach ($appDirs as $dir) {
12  $appDir = TESTS_TEMP_DIR . '/Magento/Backup/data/' . $dir;
13  if (is_dir($appDir)) {
14  rmdir($appDir);
15  }
16 }
17 
18 $files = glob(TESTS_TEMP_DIR . '/Magento/Backup/data/*', GLOB_NOSORT);
19 foreach ($files as $file) {
20  unlink($file);
21 }
22 rmdir(TESTS_TEMP_DIR . '/Magento/Backup/data');
23 rmdir(TESTS_TEMP_DIR . '/Magento/Backup');
$appDir
Definition: theme.php:12
foreach($appDirs as $dir) $files