mapbox/tilemill — Issue #1054: cross platform mkdirSync and mkdirp
Author: springmeyer
Created: 2011-12-24 03:33:20+00:00
State: open
Labels: windows

`lib/fsutil.js` almost works on windows. The main issue is the relative paths are detected with `p.charAt(0) != '/'` in mkdirp and paths are split in mkdirSync with `split('/')`. The latter is easy to solve by using a platform specific separator and the former can be solved by using the mkdirp implementation from within [npm](https://github.com/isaacs/npm/blob/master/lib/utils/mkdir-p.js).

TODO: also check if substack's [mkdirp](https://github.com/substack/node-mkdirp) is crossplatform