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

Method saveFolderOwners

src/FileRise/Domain/FolderModel.php:1024–1028  ·  view source on GitHub ↗

Persist the folder → owner map. */

(array $map)

Source from the content-addressed store, hash-verified

1022
1023 /** Persist the folder → owner map. */
1024 public static function saveFolderOwners(array $map): bool
1025 {
1026 $path = self::folderOwnersPath();
1027 return (bool) @file_put_contents($path, json_encode($map, JSON_PRETTY_PRINT), LOCK_EX);
1028 }
1029
1030 /** Set (or replace) the owner for a specific folder (relative path or 'root'). */
1031 public static function setOwnerFor(string $folder, string $owner): void

Callers 4

setOwnerForMethod · 0.95
renameOwnerKeyMethod · 0.95
removeOwnerForTreeMethod · 0.95
renameOwnersForTreeMethod · 0.95

Calls 1

folderOwnersPathMethod · 0.95

Tested by

no test coverage detected