...
|
...
|
@@ -146,7 +146,7 @@ class Common extends Api |
|
|
public function ceshi()
|
|
|
{
|
|
|
|
|
|
$tree = $this->recurDir('../public/doc');
|
|
|
$tree = $this->recurDir('../public/doc/雅阁/2014年东风雪铁龙C4L');
|
|
|
// $tree = $this->recurDir('/home/wwwroot/fast/learncar/public/doc/12345678');
|
|
|
// $this->success('成功', array_values($tree));
|
|
|
print_r($tree);
|
...
|
...
|
@@ -188,10 +188,11 @@ class Common extends Api |
|
|
return $result;
|
|
|
}
|
|
|
|
|
|
public function CreateFile(){
|
|
|
public function CreateFile()
|
|
|
{
|
|
|
$dir = '../public/ceshi';
|
|
|
if (!file_exists($dir)){
|
|
|
mkdir ($dir,0777,true);
|
|
|
if (!file_exists($dir)) {
|
|
|
mkdir($dir, 0777, true);
|
|
|
echo '创建文件夹log成功';
|
|
|
} else {
|
|
|
echo '需创建的文件夹log已经存在';
|
...
|
...
|
|