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

Method normalizeFolder

src/FileRise/Support/ACL.php:71–78  ·  view source on GitHub ↗
(string $f)

Source from the content-addressed store, hash-verified

69 }
70
71 public static function normalizeFolder(string $f): string
72 {
73 $f = trim(str_replace('\\', '/', $f), "/ \t\r\n");
74 if ($f === '' || $f === 'root') {
75 return 'root';
76 }
77 return $f;
78 }
79
80 public static function purgeUser(string $user): bool
81 {

Callers 15

userHasAnyAccessMethod · 0.95
ownsFolderOrAncestorMethod · 0.95
migrateSubtreeMethod · 0.95
renameTreeMethod · 0.95
deleteTreeMethod · 0.95
groupHasGrantMethod · 0.95
ancestorsMethod · 0.95
ensureFolderRecordMethod · 0.95
hasGrantMethod · 0.95
canReadMethod · 0.95
canWriteMethod · 0.95
canShareMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected