Persist the folder → owner map. */
(array $map)
| 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 |
no test coverage detected