Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 56 additions & 58 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions src/Storage/Device.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@
abstract class Device
{
/**
* Max chunk size while transfering file from one device to another
* Max chunk size while transferring file from one device to another
*/
protected int $transferChunkSize = 20000000; //20 MB

/**
* Sets the maximum number of keys returned to the response. By default, the action returns up to 1,000 key names.
*/
protected const MAX_PAGE_SIZE = PHP_INT_MAX;

/**
* Set Transfer Chunk Size
*
Expand Down Expand Up @@ -277,9 +282,11 @@ abstract public function getPartitionTotalSpace(): float;
* Get all files and directories inside a directory.
*
* @param string $dir Directory to scan
* @return string[]
* @param int $max
* @param string $continuationToken
* @return array<mixed>
*/
abstract public function getFiles(string $dir): array;
abstract public function getFiles(string $dir, int $max = self::MAX_PAGE_SIZE, string $continuationToken = ''): array;

/**
* Get the absolute path by resolving strings like ../, .., //, /\ and so on.
Expand Down
Loading