src/Http/Services/Contracts/FileServiceContract.php
<?php
namespace EscolaLms\Files\Http\Services\Contracts;
use EscolaLms\Core\Models\User;
use Illuminate\Support\Collection;
interface FileServiceContract
{
public function findAll(string $directory, array $list): array;
public function putAll(string $directory, array $list): array;
public function listInfo(string $directory): Collection;
public function move(string $sourceUrl, string $destinationUrl): bool;
public function delete(string $url): bool;
public function findByName(string $directory, string $name): Collection;
public function addUserAccessToDirectory(User $user, string $directoryName): array;
public function removeUserAccessToDirectory(User $user, string $directoryName): array;
}