We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4c3933 commit 5c28eceCopy full SHA for 5c28ece
1 file changed
models/integrations.php
@@ -10,13 +10,18 @@ function uploaded_integrations($path_to_integrations){
10
$uploaded_integrations = [];
11
foreach ($integration_folders as $integration_folder){
12
13
+ // Exclude certain files or filders
14
+ $excluded_items = array('.DS_Store');
15
+
16
// Create URI from folder name.
- array_push(
- $uploaded_integrations,
- array(
17
- 'uri' => $integration_folder
18
- )
19
- );
+ if(!in_array($integration_folder, $excluded_items)){
+ array_push(
+ $uploaded_integrations,
20
+ array(
21
+ 'uri' => $integration_folder
22
+ )
23
+ );
24
+ }
25
26
}
27
return $uploaded_integrations;
0 commit comments