I should check that dir is an inodefolder in the loop, but I don't need any locks on dir, since cur has a write lock on it. I don't think this logic shows up anywhere else yet, and since we only upgrade if the create file is recursive (we throw an exception otherwise), it might be a little more confusing to try to explain the motivation for another parameter in the getInodeWithLocks method itself, especially since we would have to pass false in for every other call to getInodeWithLocks.