(string $sourceId)
| 49 | } |
| 50 | |
| 51 | private static function metaRootForId(string $sourceId): string |
| 52 | { |
| 53 | if (class_exists('SourceContext')) { |
| 54 | $root = SourceContext::metaRootForId($sourceId); |
| 55 | if (!is_dir($root)) { |
| 56 | @mkdir($root, 0775, true); |
| 57 | } |
| 58 | return $root; |
| 59 | } |
| 60 | $root = rtrim((string)META_DIR, '/\\') . DIRECTORY_SEPARATOR; |
| 61 | if (!is_dir($root)) { |
| 62 | @mkdir($root, 0775, true); |
| 63 | } |
| 64 | return $root; |
| 65 | } |
| 66 | |
| 67 | private static function getMetadataFilePathForRoot(string $metaRoot, string $folder): string |
| 68 | { |
no outgoing calls
no test coverage detected