Commit a117468a069e9dee172dad388f6d13ff5f4b5269

Authored by Nathanael Jourdane
1 parent 57d96667

update metadata: create the folder if necessary

Showing 1 changed file with 5 additions and 0 deletions   Show diff stats
php/update_metadata.php
... ... @@ -2,6 +2,11 @@
2 2 include(realpath(dirname(__FILE__) . "/config.php"));
3 3 include(CLASSPATH . "EpnTapMgr.php");
4 4 $metadata_json_path = EpnTapDataPath . "metadata.json";
  5 +
  6 +if(!is_dir(EpnTapDataPath)) {
  7 + mkdir(EpnTapDataPath);
  8 +}
  9 +
5 10 $EpnTapMgr = new EpnTapMgr;
6 11  
7 12 $services = $EpnTapMgr->getServices();
... ...