src/Backup/Collector/Ftp.php 1 location
|
@@ 107-111 (lines=5) @@
|
104 |
|
private function collectFiles(string $remotePath) |
105 |
|
{ |
106 |
|
foreach ($this->ftpClient->lsFiles($remotePath) as $ftpFile) { |
107 |
|
if ($this->isFilenameMatch($ftpFile->getFilename())) { |
108 |
|
$file = new File\Ftp($this->ftpClient, $ftpFile, $remotePath); |
109 |
|
$index = $this->getFileIndex($file); |
110 |
|
$this->files[$index] = $file; |
111 |
|
} |
112 |
|
} |
113 |
|
} |
114 |
|
} |
src/Backup/Collector/Local.php 1 location
|
@@ 78-83 (lines=6) @@
|
75 |
|
if ($splFile->isDir()) { |
76 |
|
continue; |
77 |
|
} |
78 |
|
if ($this->isFilenameMatch($splFile->getFilename())) { |
79 |
|
|
80 |
|
$file = new FileLocal($splFile->getFileInfo()); |
81 |
|
$index = $this->getFileIndex($file); |
82 |
|
$this->files[$index] = $file; |
83 |
|
} |
84 |
|
} |
85 |
|
} |
86 |
|
|