Skip to content

Commit 0a1f8e9

Browse files
committed
Add trash api
1 parent 84125aa commit 0a1f8e9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Shell.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ public function openFile(string $path): string
2424
])->json('result');
2525
}
2626

27+
public function trashFile(string $path): void
28+
{
29+
$this->client->delete('shell/trash-item', [
30+
'path' => $path,
31+
]);
32+
}
33+
2734
public function openExternal(string $url): void
2835
{
2936
$this->client->post('shell/open-external', [

0 commit comments

Comments
 (0)