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

Method isTrashDisabled

src/FileRise/Storage/SourceContext.php:130–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers 1

deleteFilesMethod · 0.80

Calls 1

getActiveSourceMethod · 0.95

Tested by

no test coverage detected