UNPKG

filefive

Version:

SFTP/FTP/Amazon S3 client and dual-panel file manager for macOS and Linux

13 lines (12 loc) 359 B
"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(); }