Page MenuHomePhabricator

D11729.diff
No OneTemporary

D11729.diff

diff --git a/src/filesystem/PhutilDeferredLog.php b/src/filesystem/PhutilDeferredLog.php
--- a/src/filesystem/PhutilDeferredLog.php
+++ b/src/filesystem/PhutilDeferredLog.php
@@ -178,6 +178,11 @@
$line = $this->format();
if ($this->file !== null) {
+ $dir = dirname($this->file);
+ if (!Filesystem::pathExists($dir)) {
+ Filesystem::createDirectory($dir, 0755, true);
+ }
+
$ok = @file_put_contents(
$this->file,
$line,

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 27, 10:25 PM (7 h, 15 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6933444
Default Alt Text
D11729.diff (480 B)

Event Timeline