Skip to content

Commit

Permalink
changed the return type of FileAccess::getDirectoryContents to array|…
Browse files Browse the repository at this point in the history
…false
  • Loading branch information
dwilbourne committed Sep 10, 2024
1 parent 3f2fb5c commit 4f6a65c
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/storage/filesys/FileAccessInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,24 @@
*/
interface FileAccessInterface
{
public function fileEntryExists(string $fileEntryName): bool;
public function fileExists(string $fileName): bool;

public function fileIsReadable(string $fileName): bool;

public function fileIsWriteable(string $fileName): bool;

public function fileGetContents(string $fileName): string|false;
public function directoryExists(string $dirName): bool;

public function filePutContents(string $fileName, string $data): bool;
public function directoryIsReadable(string $dirName): bool;

public function fileGetLine(): string|false;
public function directoryIsWriteable(string $dirName): bool;

public function filePutLine(string $data): bool;
public function getDirectoryContents(string $dirName, bool $withDots = false, int $sortOrder = SCANDIR_SORT_ASCENDING): array|false;

public function fileGetContents(string $fileName): string|false;

public function filePutContents(string $fileName, string $data): bool;

public function openFile(string $fileName, string $mode): bool;

Expand All @@ -36,11 +41,10 @@ public function closeFile(): bool;

public function eof(): bool;

public function directoryExists(string $dirName): bool;
public function fileGetLine(): string|false;

public function filePutLine(string $data): bool;

public function directoryIsWriteable(string $dirName): bool;

public function directoryIsReadable(string $dirName): bool;

public function getDirectoryContents(string $dirName, bool $withDots = false): ?array;
}

0 comments on commit 4f6a65c

Please sign in to comment.