Page MenuHomePhabricator

D19739.diff
No OneTemporary

D19739.diff

diff --git a/src/applications/transactions/bulk/management/PhabricatorBulkManagementExportWorkflow.php b/src/applications/transactions/bulk/management/PhabricatorBulkManagementExportWorkflow.php
--- a/src/applications/transactions/bulk/management/PhabricatorBulkManagementExportWorkflow.php
+++ b/src/applications/transactions/bulk/management/PhabricatorBulkManagementExportWorkflow.php
@@ -114,6 +114,10 @@
$iterator = $file->getFileDataIterator();
if (strlen($output_path)) {
+ // Empty the file before we start writing to it. Otherwise, "--overwrite"
+ // will really mean "--append".
+ Filesystem::writeFile($output_path, '');
+
foreach ($iterator as $chunk) {
Filesystem::appendFile($output_path, $chunk);
}

File Metadata

Mime Type
text/plain
Expires
Fri, Mar 28, 12:56 AM (6 d, 16 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7709133
Default Alt Text
D19739.diff (764 B)

Event Timeline