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

Method folderKey

src/FileRise/Support/MetadataPath.php:9–16  ·  view source on GitHub ↗
(string $folder)

Source from the content-addressed store, hash-verified

7 private const ROOT_FILE = 'root_metadata.json';
8
9 public static function folderKey(string $folder): string
10 {
11 $folder = trim(str_replace('\\', '/', $folder), "/ \t\n\r\0\x0B");
12 if ($folder === '' || strcasecmp($folder, 'root') === 0) {
13 return 'root';
14 }
15 return $folder;
16 }
17
18 public static function path(string $metaRoot, string $folder): string
19 {

Callers 5

pathMethod · 0.95
encodedFileNameMethod · 0.95
legacyFileNameMethod · 0.95
deleteSubtreeMethod · 0.95
renameSubtreeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected