Lines Matching defs:tempdir
14 private $tempdir;
29 $this->tempdir = $conf['tmpdir'];
30 if(!file_exists($this->tempdir . '/tmp')) {
31 echo "creating tmp directory: " . $this->tempdir . '/tmp' . "\n";
32 mkdir($this->tempdir . '/tmp');
53 $gzfile = $this->tempdir . '/GeoLite2-City.tar.gz';
84 $files = scandir($this->tempdir);
88 $file = $this->tempdir."/$file";
101 $phar->extractTo($this->tempdir.'/tmp'); // extract all files
110 $tmpdir_files = scandir($this->tempdir . '/' . 'tmp');
112 $current_file = $this->tempdir . '/' . "tmp/${tmpfile}";
114 if(is_dir($this->tempdir . '/' . 'tmp/'. $tmpfile)) {
115 $geo_dir_name = $this->tempdir . '/' . 'tmp/'. $tmpfile;
116 $geo_dir = scandir($this->tempdir . '/' . 'tmp/'. $tmpfile);
118 if(!is_dir($this->tempdir . '/' . 'tmp/'. $gfile)) {
134 echo $this->tempdir . '/' . 'tmp/'. $tmpfile . " is not a directory\n";
145 $to_cleanup = scandir($this->tempdir);
148 $del = $this->tempdir . '/' . $file;
153 rmdir($this->tempdir . '/' .'tmp');