Skip to content

Commit

Permalink
Fix Dev path for importing example devices.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Aug 15, 2024
1 parent d201908 commit 2c093e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/Controllers/Devices.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,7 @@ public function example()
set_time_limit(300);
$db = db_connect();
$count = 0;
#$files = glob(APPPATH . '/../other/example_devices/*.{xml,json}', GLOB_BRACE);
$files = glob('/Users/mark/audits/*.{xml,json}', GLOB_BRACE);
$files = glob(APPPATH . '/../other/example_devices/*.{xml,json}', GLOB_BRACE);
$this->config->discovery_use_dns = 'n';
foreach ($files as $file) {
$device = file_get_contents($file);
Expand Down

0 comments on commit 2c093e7

Please sign in to comment.