Skip to content

Commit 1ff8c5f

Browse files
committed
ディレクトリは除外。
1 parent 9171c90 commit 1ff8c5f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/Backup/Copy/Traits/CopySharedFile.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ public function copySharedFiles ( $src_project_id, $dst_project_id ) {
88

99
$mapping = [];
1010
foreach ( $list as $item ) {
11+
if ($item->type == 'directory'){
12+
continue;
13+
}
1114
$path = $item->dir.DIRECTORY_SEPARATOR.$item->name;
1215
$content = $this->src_cli->getFile( $src_project_id, $item->id );
1316
$this->dst_cli->addSharedFile( $dst_project_id, $path, $content );

0 commit comments

Comments
 (0)