diff options
author | Michael Bishop <mbtyke@gmail.com> | 2013-10-11 11:58:24 -0400 |
---|---|---|
committer | Michael Bishop <mbtyke@gmail.com> | 2013-10-11 11:58:24 -0400 |
commit | c338dd0a37f127aff4aaf69a6ba884a717bb0357 (patch) | |
tree | d94288ea888e1846953f8417f32372a472cc2f16 /src/library_memfs.js | |
parent | 2cc20b41629bc533902ab25771388665c9276e58 (diff) |
Fixes bug when renaming a directory into a subdirectory.
Diffstat (limited to 'src/library_memfs.js')
-rw-r--r-- | src/library_memfs.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library_memfs.js b/src/library_memfs.js index 4e56d996..94fd767e 100644 --- a/src/library_memfs.js +++ b/src/library_memfs.js @@ -140,6 +140,7 @@ mergeInto(LibraryManager.library, { delete old_node.parent.contents[old_node.name]; old_node.name = new_name; new_dir.contents[new_name] = old_node; + old_node.parent = new_dir; }, unlink: function(parent, name) { delete parent.contents[name]; |