Testing on Windows, fixing txt only glob

This commit is contained in:
color.diff=auto 2021-03-26 15:17:07 -06:00
parent 04ddcce846
commit 358666c292

View File

@ -24,13 +24,11 @@ class D2Files {
public $files = [];
public function __construct() {
$this->files = array_diff(scandir(TXT_PATH), array('..', '.'));
$files = glob(TXT_PATH.DIRECTORY_SEPARATOR.'*.txt');
foreach ($files as $file){
$this->files[] = basename($file);
}
return $this->files;
}
public function getFile($name) {
return $this->files[$name];
}
}