Skip to content

Commit

Permalink
写入文件 支持多级目录
Browse files Browse the repository at this point in the history
  • Loading branch information
z-eli committed Aug 28, 2018
1 parent 74e68fc commit 6de7764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parsers/Abstracts/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function saveMarkdown($path, $name, $contents)
$file = $path.'/'.$name;
try {
if (!is_dir($path)) {
mkdir($path, 0777);
mkdir($path, 0777,true);
}
$fp = fopen($file, 'wb+');
fwrite($fp, $contents);
Expand Down

0 comments on commit 6de7764

Please sign in to comment.