diff --git a/file.php b/file.php index a8ad427..d37cf12 100644 --- a/file.php +++ b/file.php @@ -27,7 +27,7 @@ } $filenamePretty = "cache/$project/$path.txt"; if (!file_exists($filenamePretty) || filemtime($filenamePretty) <= filemtime($filename) || isset($_REQUEST['redo'])) { - if (is_dir(dirname($filenamePretty))) { + if (!is_dir(dirname($filenamePretty))) { mkdir(dirname($filenamePretty), 0777, true); } $cmd = 'FILE="'.$filenamePretty.'" vim -e +"source ./highlight.vim" '.escapeshellarg($filename).' 2>&1';