/** * Creates directory structure * * @param string $path Path to the directory where the file should be placed (and non-existent) */ private function make_dir($path) { if (is_dir($path)) { return; } $path = str_replace(DIRECTORY_SEPARATOR, '/', $path); $this->filesystem->mkdir($path, 493); // 493 === 0755 }