Page MenuHomePhabricator

D7917.id.diff
No OneTemporary

D7917.id.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
Wed, Mar 19, 9:41 PM (3 w, 12 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7710312
Default Alt Text
D7917.id.diff (765 B)

Event Timeline