Nodeのpathライブラリー、resolveについて
path.resolve(‘/foo/bar’, ‘./baz’)
// returns ‘/foo/bar/baz’
path.resolve(‘/foo/bar’, ‘/tmp/file/’)
// returns ‘/tmp/file’
path.resolve(‘wwwroot’, ‘static_files/png/’, ‘../gif/image.gif’)
// if currently in /home/myself/node, it returns ‘/home/myself/node/wwwroot/static_files/gif/image.gif’