yandex_disk v0.1.2 YandexDisk.Trash View Source
Link to this section Summary
Link to this section Functions
Link to this function
clear(client, args \\ [])
View Sourceclear(YandexDisk.client(), Keyword.t()) :: {:ok, :removed} | {:ok, :removing} | {:error, :no_resource}
Remove file from trash or clear trash totally.
Examples
iex> YandexDisk.Trash.clear(client, yandex_path: "test11_001.mp4")
{ :ok, :removed }
iex> YandexDisk.Trash.clear(client, yandex_path: "test_folder4")
{ :ok, :removed }
iex> YandexDisk.Trash.clear(client)
{ :ok, :removing }
iex> YandexDisk.Trash.clear(client, yandex_path: "test_folder4")
{ :error, :no_resource }
See:
Link to this function
restore(client, args \\ [])
View Sourcerestore(YandexDisk.client(), Keyword.t()) :: {:ok, :restored} | {:ok, :restoring} | {:error, :no_resource}
Restoring files or folders placed in trash
Examples
iex> YandexDisk.Trash.restore(client, yandex_path: "nvr")
{ :ok, :restoring }
See: