1 | ;
|
2 |
|
3 | var path = require("path");
|
4 |
|
5 | module.exports = function (filePath) {
|
6 | var _path$parse = path.parse(filePath),
|
7 | dir = _path$parse.dir,
|
8 | name = _path$parse.name;
|
9 |
|
10 | var parsedName = name === "index" ? "" : name;
|
11 | return path.posix.join("/", dir, parsedName, "/");
|
12 | }; |
\ | No newline at end of file |