mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2024-11-30 12:36:03 +00:00
Testing on Windows, fixing txt only glob
This commit is contained in:
parent
04ddcce846
commit
358666c292
@ -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];
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user