Mike Percy has submitted this change and it was merged. Change subject: Add some path / env related helper functions ......................................................................
Add some path / env related helper functions * path_util: Add SplitPath() helper function This function provides a (theoretically) portable method of splitting a filesystem path into its constituent components. * env: Add GetCurrentWorkingDir() and ChangeDir() These are functions that were missing from our Env implementation. * env_util: Implement CreateDirsRecursively() This function is similar in spirit to the "mkdir -p" command. Also reordered a few includes and deleted a few lines of commented-out code. Change-Id: Ia664708a09493923abbf2ff4e56e3d49c62cf97e Reviewed-on: http://gerrit.cloudera.org:8080/5618 Reviewed-by: Adar Dembo <[email protected]> Tested-by: Mike Percy <[email protected]> --- M src/kudu/util/env-test.cc M src/kudu/util/env.h M src/kudu/util/env_posix.cc M src/kudu/util/env_util-test.cc M src/kudu/util/env_util.cc M src/kudu/util/env_util.h M src/kudu/util/path_util-test.cc M src/kudu/util/path_util.cc M src/kudu/util/path_util.h 9 files changed, 176 insertions(+), 11 deletions(-) Approvals: Mike Percy: Verified Adar Dembo: Looks good to me, approved -- To view, visit http://gerrit.cloudera.org:8080/5618 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ia664708a09493923abbf2ff4e56e3d49c62cf97e Gerrit-PatchSet: 5 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: Mike Percy <[email protected]> Gerrit-Reviewer: Adar Dembo <[email protected]> Gerrit-Reviewer: Dinesh Bhat <[email protected]> Gerrit-Reviewer: Lars Volker <[email protected]> Gerrit-Reviewer: Mike Percy <[email protected]> Gerrit-Reviewer: Tidy Bot Gerrit-Reviewer: Todd Lipcon <[email protected]>
