@sync-in/server
Version:
The secure, open-source platform for file storage, sharing, collaboration, and sync
20 lines (19 loc) • 632 B
JavaScript
/*
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
* This file is part of Sync-in | The open source file sync and share solution
* See the LICENSE file for licensing details
*/ "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "PATH_TO_SPACE_SEGMENTS", {
enumerable: true,
get: function() {
return PATH_TO_SPACE_SEGMENTS;
}
});
const _files = require("../../files/utils/files");
function PATH_TO_SPACE_SEGMENTS(path) {
return (0, _files.sanitizePath)(path).split('/').filter(Boolean);
}
//# sourceMappingURL=routes.js.map