private static INodesInPath dstForRenameTo( INodesInPath srcIIP, INodesInPath dstIIP) throws IOException { INode dstINode = dstIIP.getLastINode(); if (dstINode != null && dstINode.isDirectory()) { byte[] childName = srcIIP.getLastLocalName(); // new dest might exist so look it up. INode childINode = dstINode.asDirectory().getChild( childName, dstIIP.getPathSnapshotId()); dstIIP = INodesInPath.append(dstIIP, childINode, childName); } return dstIIP; }
name = child.getLocalNameBytes(); iip = INodesInPath.append(iip, child, name);
return INodesInPath.append(existing, inode, inode.getLocalNameBytes());
return null; iip = INodesInPath.append(e.getKey(), null, localName);
dstIIP = INodesInPath.append(dstIIP, null, srcIIP.getLastLocalName());
return null; iip = INodesInPath.append(e.getKey(), null, localName);
dstIIP = INodesInPath.append(dstIIP, null, srcIIP.getLastLocalName());
fsd, src, cur.getLocalNameBytes(), cur, snapshot); final INodesInPath iipWithChild = INodesInPath.append(iip, cur, cur.getLocalNameBytes()); listing[i] = createFileStatus(fsd, cur.getLocalNameBytes(), nodeAttrs,
fsd, src, cur.getLocalNameBytes(), cur, snapshot); final INodesInPath iipWithChild = INodesInPath.append(iip, cur, cur.getLocalNameBytes()); listing[i] = createFileStatus(fsd, cur.getLocalNameBytes(), nodeAttrs,
return INodesInPath.append(existing, inode, inode.getLocalNameBytes());
return INodesInPath.append(existing, inode, inode.getLocalNameBytes());