Skip to content

Commit 15e100f

Browse files
made it so you can create the bioportal download directory for apo.obo
1 parent f9e22c2 commit 15e100f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: sgd/sgd.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,10 @@ function GetMethodID($label, &$id, &$type) {
13471347
}//GetMethodID
13481348

13491349
function GetLatestNCBOOntology($ontology_id,$apikey,$target_filepath){
1350-
Utils::DownloadSingle('http://data.bioontology.org/ontologies/'.$ontology_id.'/download?apikey='.$apikey, $target_filepath);
1350+
$url = 'http://data.bioontology.org/ontologies/'.$ontology_id.'/download?apikey='.$apikey;
1351+
$path = pathinfo($target_filepath);
1352+
@mkdir($path['dirname'],'0777');
1353+
Utils::DownloadSingle($url, $target_filepath);
13511354
}
13521355
}//SGDParser
13531356

0 commit comments

Comments
 (0)