(bool $isLocal)
| 65 | } |
| 66 | |
| 67 | private static function stagingRoot(bool $isLocal): string |
| 68 | { |
| 69 | if ($isLocal) { |
| 70 | return self::uploadRoot(); |
| 71 | } |
| 72 | $base = rtrim(self::metaRoot(), '/\\') . DIRECTORY_SEPARATOR . 'uploadtmp' . DIRECTORY_SEPARATOR; |
| 73 | if (!is_dir($base)) { |
| 74 | @mkdir($base, 0775, true); |
| 75 | } |
| 76 | return $base; |
| 77 | } |
| 78 | |
| 79 | private static function resumableTtlSeconds(): int |
| 80 | { |
no test coverage detected