Skip to content

Commit

Permalink
Ignore any .meta folders
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Dec 12, 2023
1 parent 79c8dbb commit 2f5c027
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Commands/SyncAssets.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ private function processFolder(AssetContainer $container, $folder = '')
// process any sub-folders of this folder
$container->folders($folder)
->each(function ($subfolder) use ($container, $folder) {
if (str_contains($subfolder.'/', '.meta/')) {
return;
}

if ($folder != $subfolder && (strlen($subfolder) > strlen($folder))) {
$this->processFolder($container, $subfolder);
}
Expand Down

0 comments on commit 2f5c027

Please sign in to comment.