Skip to content

Commit

Permalink
recreate-id-helper-file 修复不子文件夹的文件读取
Browse files Browse the repository at this point in the history
  • Loading branch information
breath-co2 committed Jan 26, 2013
1 parent 957884f commit 9f89766
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/recreate-ide-helper-file
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function create_ide_helper($lib)
$file = DIR_SYSTEM.$lib.'/_ide_helper'.EXT;
if ($str==='')
{
echo $lib ."\x1b[36m无文件\x1b[39m\n";
echo $lib ." \x1b[36m无文件\x1b[39m\n";
if (is_file($file))@unlink($file);
return;
}
Expand All @@ -59,17 +59,17 @@ function create_ide_helper($lib)

if (is_file($file) && md5_file($file)==md5($str))
{
echo $lib ."\x1b[36m未修改.\x1b[39m\n";
echo $lib ." \x1b[36m未修改.\x1b[39m\n";
}
else
{
if (false!==@file_put_contents(DIR_SYSTEM.$lib.'/_ide_helper'.EXT, $str))
{
echo $lib ."\x1b[32m✔\x1b[39m\n";
echo $lib ." \x1b[32m✔\x1b[39m\n";
}
else
{
echo $lib ."\x1b[33m✕\x1b[39m\n";
echo $lib ." \x1b[33m✕\x1b[39m\n";
}
}
}
Expand Down Expand Up @@ -128,7 +128,7 @@ function paste_files($lib,$dir,$class_dir,$p_dir='')
$file_name = substr($file,$dir_len);
if (is_dir($file))
{
paste_files($lib , $dir , $file.'/' , $p_dir.'/'.$file_name);
$str .= paste_files($lib , $dir , $file.'/' , $p_dir.'/'.$file_name);
continue;
}

Expand Down

0 comments on commit 9f89766

Please sign in to comment.