Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15393352
D9001.id21378.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
921 B
Referenced Files
None
Subscribers
None
D9001.id21378.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D9001: Fix a crash when uploading a ZIP to Phragment
Attached
Detach File
Event Timeline
Log In to Comment