Skip to content

Commit 3f2b426

Browse files
Removed checks for trailing slashes in indir and outdir
1 parent 33da386 commit 3f2b426

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

ctd/ctd.php

-14
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,6 @@ function download(){
6666
$ldir = parent::getParameterValue('indir');
6767
$rdir = parent::getParameterValue('download_url');
6868

69-
//make sure directories end with slash
70-
if(substr($ldir, -1) !== "/"){
71-
$ldir = $ldir."/";
72-
}
73-
7469
$gz_suffix = ".gz";
7570

7671
foreach($files AS $file) {
@@ -103,15 +98,6 @@ function process(){
10398
$rdir = parent::getParameterValue('download_url');
10499
$odir = parent::getParameterValue('outdir');
105100

106-
//make sure input and output directories end with slash
107-
if(substr($ldir, -1) !== "/"){
108-
$ldir = $ldir."/";
109-
}
110-
111-
if(substr($odir, -1) !== "/"){
112-
$odir = $odir."/";
113-
}
114-
115101
$graph_uri = parent::getGraphURI();
116102
if(parent::getParameterValue('dataset_graph') == true) parent::setGraphURI(parent::getDatasetURI());
117103

0 commit comments

Comments
 (0)