continuuity/hadoop_cookbook — pull request #66 by wolf31o2 (2014-05-30 18:40:43+00:00)
Title: Feature/issue 59

Add another code path to match paths with `${user}` in them. This strips the final directory off the path, and creates the parent with `mode 1777`, which should be sufficient for supporting paths ending in `hadoop-${user}` as requested in issue #59 ...

This is **not** perfect, but it resolves this use case. A better solution would be to traverse the path and find the element that has `${user}` in it and simply create the parent as `mode 1777` and let Hadoop create subsequent directories.