Lines Matching refs:new_dir
2041 },rename:function (old_node, new_dir, new_name) { argument
2046 new_node = FS.lookupNode(new_dir, new_name);
2058 new_dir.contents[new_name] = old_node;
2059 old_node.parent = new_dir;
3161 var lookup, old_dir, new_dir;
3166 new_dir = lookup.node;
3171 if (old_dir.mount !== new_dir.mount) {
3189 new_node = FS.lookupNode(new_dir, new_name);
3206 FS.mayDelete(new_dir, new_name, isdir) :
3207 FS.mayCreate(new_dir, new_name);
3218 if (new_dir !== old_dir) {
3228 old_dir.node_ops.rename(old_node, new_dir, new_name);