"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.split = split;
const path_1 = require("path");
function split(path) {
    const parts = [];
    while (path && path != path_1.sep && path != '.') {
        parts.push((0, path_1.basename)(path));
        path = (0, path_1.dirname)(path);
    }
    return parts.reverse();
}
