Add getAbsoluteAttachmentPath

This commit is contained in:
Daniel Gasienica 2018-04-26 16:50:19 -04:00
parent e2a2165d9c
commit f56dc09d01
2 changed files with 6 additions and 0 deletions

View file

@ -123,3 +123,7 @@ exports.getRelativePath = (name) => {
const prefix = name.slice(0, 2);
return path.join(prefix, name);
};
// createAbsolutePathGetter :: RoothPath -> RelativePath -> AbsolutePath
exports.createAbsolutePathGetter = rootPath => relativePath =>
path.join(rootPath, relativePath);