src/Backup/Collector/Dropbox.php 1 location
|
@@ 56-66 (lines=11) @@
|
53 |
|
] |
54 |
|
); |
55 |
|
/** @var \Kunnu\Dropbox\Models\FileMetadata $item */ |
56 |
|
foreach ($items->getItems() as $item) { |
57 |
|
// skip directories |
58 |
|
if ($item instanceof FolderMetadata) { |
59 |
|
continue; |
60 |
|
} |
61 |
|
if ($this->isFileMatch($item->getPathDisplay())) { |
62 |
|
$file = new File\Dropbox($this->client, $item); |
63 |
|
$index = $this->getFileIndex($file); |
64 |
|
$this->files[$index] = $file; |
65 |
|
} |
66 |
|
} |
67 |
|
} |
68 |
|
} |
69 |
|
|
src/Backup/Collector/YandexDisk.php 1 location
|
@@ 48-54 (lines=7) @@
|
45 |
|
protected function collectBackups() |
46 |
|
{ |
47 |
|
$items = $this->disk->getResource($this->path->getPathThatIsNotChanging()); |
48 |
|
foreach ($items->toArray()['items'] as $item) { |
49 |
|
if (($item instanceof Disk\Resource\Closed) && $this->isFileMatch($item->getPath())) { |
50 |
|
$file = new File\YandexDisk($this->disk, $item); |
51 |
|
$index = $this->getFileIndex($file); |
52 |
|
$this->files[$index] = $file; |
53 |
|
} |
54 |
|
} |
55 |
|
} |
56 |
|
} |
57 |
|
|