diff --git a/library/think/File.php b/library/think/File.php index ef5d69da..1c541a13 100644 --- a/library/think/File.php +++ b/library/think/File.php @@ -11,6 +11,7 @@ namespace think; +use SplFileInfo; use SplFileObject; class File extends SplFileObject @@ -157,7 +158,7 @@ class File extends SplFileObject return false; } - return new \SplFileInfo($path . $savename); + return new SplFileInfo($path . $savename); } /**