From 8410162e3a5b5697450f8c9c744622df310f475d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=98=E7=BC=98?= Date: Sun, 8 May 2016 07:29:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E5=A4=84=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E9=94=99=E8=AF=AF=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/File.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/think/File.php b/library/think/File.php index 639bbe1c..6994d534 100644 --- a/library/think/File.php +++ b/library/think/File.php @@ -29,7 +29,6 @@ class File extends SplFileObject */ protected function checkPath($path) { - if (is_dir($path)) { return true; } @@ -37,7 +36,7 @@ class File extends SplFileObject if (mkdir($path, 0777, true)) { return true; } else { - $this->error = "目录 {$savepath} 创建失败!"; + $this->error = "目录 {$path} 创建失败!"; return false; } }