MCPcopy Create free account
hub / github.com/error311/FileRise / split

Method split

src/FileRise/WebDAV/FileRiseFile.php:233–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

231 // ── helpers ──────────────────────────────────────────────────────────────
232
233 private function split(): array
234 {
235 $base = rtrim(UPLOAD_DIR, '/\\') . DIRECTORY_SEPARATOR;
236 $rel = ltrim(str_replace('\\', '/', substr($this->path, strlen($base))), '/');
237 $parts = explode('/', $rel);
238 $file = array_pop($parts);
239 $folder = empty($parts) ? 'root' : implode('/', $parts);
240 return [$folder, $file];
241 }
242
243 private function metaFile(string $folderKey): string
244 {

Callers 15

deleteMethod · 0.95
getMethod · 0.95
putMethod · 0.95
processFilesFunction · 0.80
upload.jsFile · 0.80
compareSemverFunction · 0.80
normalizeLogoPathFunction · 0.80
readLatestIssuedMcpTokenFunction · 0.80
compareSemverLiteFunction · 0.80
fillFileSnippetFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected