Page MenuHomePhabricator

D7917.id17942.diff
No OneTemporary

D7917.id17942.diff

Index: src/filesystem/Filesystem.php
===================================================================
--- src/filesystem/Filesystem.php
+++ src/filesystem/Filesystem.php
@@ -667,15 +667,16 @@
} while (--$tries);
if (!$tries) {
-
$df = disk_free_space($tmp);
if ($df !== false && $df < 1024 * 1024) {
throw new FilesystemException(
- $dir, "Failed to create a temporary directory: the disk is full.");
+ $dir,
+ pht("Failed to create a temporary directory: the disk is full."));
}
throw new FilesystemException(
- $dir, "Failed to create a temporary directory.");
+ $dir,
+ pht("Failed to create a temporary directory in '%s'.", $tmp));
}
return $dir;

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 25, 11:18 PM (2 w, 19 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7710312
Default Alt Text
D7917.id17942.diff (765 B)

Event Timeline