Skip to content

Commit 5c28ece

Browse files
author
Blake Bertuccelli
committed
Ignore .DS_Store as an integration
1 parent c4c3933 commit 5c28ece

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

models/integrations.php

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,18 @@ function uploaded_integrations($path_to_integrations){
1010
$uploaded_integrations = [];
1111
foreach ($integration_folders as $integration_folder){
1212

13+
// Exclude certain files or filders
14+
$excluded_items = array('.DS_Store');
15+
1316
// Create URI from folder name.
14-
array_push(
15-
$uploaded_integrations,
16-
array(
17-
'uri' => $integration_folder
18-
)
19-
);
17+
if(!in_array($integration_folder, $excluded_items)){
18+
array_push(
19+
$uploaded_integrations,
20+
array(
21+
'uri' => $integration_folder
22+
)
23+
);
24+
}
2025

2126
}
2227
return $uploaded_integrations;

0 commit comments

Comments
 (0)