TryCommitDirectory