Page MenuHomePhabricator

D9001.id21378.diff
No OneTemporary

D9001.id21378.diff

diff --git a/src/applications/phragment/storage/PhragmentFragment.php b/src/applications/phragment/storage/PhragmentFragment.php
--- a/src/applications/phragment/storage/PhragmentFragment.php
+++ b/src/applications/phragment/storage/PhragmentFragment.php
@@ -269,6 +269,14 @@
// Iterate over the mappings to find new files.
foreach ($mappings as $path => $data) {
+ $full_path = $base_path.'/'.$path;
+ if (array_key_exists($full_path, $children)) {
+ if ($children[$full_path]->isDirectory() && $mappings[$path] === null) {
+ // This is a directory that we skipped before (because
+ // it exists) and we don't want to create an entry for it.
+ continue;
+ }
+ }
if (!array_key_exists($base_path.'/'.$path, $children)) {
// The file is being created. If the data is null,
// then this is explicitly a directory being created.

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 16, 8:48 PM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7534290
Default Alt Text
D9001.id21378.diff (921 B)

Event Timeline