()
| 128 | } |
| 129 | |
| 130 | public static function isTrashDisabled(): bool |
| 131 | { |
| 132 | $src = self::getActiveSource(); |
| 133 | if (!is_array($src)) { |
| 134 | return false; |
| 135 | } |
| 136 | if (!empty($src['disableTrash'])) { |
| 137 | return true; |
| 138 | } |
| 139 | $type = strtolower((string)($src['type'] ?? '')); |
| 140 | return $type === 'gdrive'; |
| 141 | } |
| 142 | |
| 143 | public static function uploadRoot(): string |
| 144 | { |
no test coverage detected