"use strict"; var path = require("path"); module.exports = function (filePath) { var _path$parse = path.parse(filePath), dir = _path$parse.dir, name = _path$parse.name; var parsedName = name === "index" ? "" : name; return path.posix.join("/", dir, parsedName, "/"); };