必威体育下载_betway必威官网下载|网址

filetype() [<a href="'gvodujpo.gjmfuzqf'&hu;gvodujpo.gjmfuzqfμ/b&hu;]:" Lstat failed for /www/wwwroot/hxllh_com/assets/dc2fc295

/www/wwwroot/myfolder/protected/utils/FileHelper.php(21)

09      * @return void
10      */
11     public static function deleteDirectory($dir)
12     {
13         if (is_dir($dir)) {
14             $dir = rtrim($dir, '/\\');
15             $objects = scandir($dir);
16 
17             foreach ($objects as $object)
18             {
19               if ($object != "." && $object != "..")
20               {
21                 if (filetype($dir.DIRECTORY_SEPARATOR.$object) == "dir")
22                 {
23                     self::deleteDirectory($dir.DIRECTORY_SEPARATOR.$object);
24                 }
25                 else
26                 {
27                     unlink($dir.DIRECTORY_SEPARATOR.$object);
28                 }
29               }
30             }
31             
32             reset($objects);
33             @rmdir($dir);

Stack Trace

#0
+
 /www/wwwroot/myfolder/protected/utils/FileHelper.php(21): filetype("/www/wwwroot/hxllh_com/assets/dc2fc295")
16 
17             foreach ($objects as $object)
18             {
19               if ($object != "." && $object != "..")
20               {
21                 if (filetype($dir.DIRECTORY_SEPARATOR.$object) == "dir")
22                 {
23                     self::deleteDirectory($dir.DIRECTORY_SEPARATOR.$object);
24                 }
25                 else
26                 {
#1
+
 /www/wwwroot/myfolder/protected/components/FrontendController.php(43): FileHelper::deleteDirectory("/www/wwwroot/hxllh_com/assets")
38 
39         if (YII_DEBUG)
40         {   /*调试模式下 每次都刷新assets*/
41             $assetsDirPath = Yii::getPathOfAlias('webroot.assets');
42             Yii::import('application.utils.FileHelper');
43             FileHelper::deleteDirectory($assetsDirPath);
44             @mkdir($assetsDirPath);
45         }
46     }
47 
48     /**
#2
+
 /www/wwwroot/myfolder/protected/controllers/ArticleController.php(16): FrontendController->init()
11 
12     public $defaultPageLimit = 10;
13 
14     public function init()
15     {
16         parent::init();
17 
18         /*获得文章分类导航*/
19         if (is_null(self::$nav))
20         {
21             /*todo 缓存*/
2020-08-07 19:58:58 nginx/1.8.1 Yii Framework/1.1.8