На некоторых ОС вы получаете .
..
и .DS_Store
, ну мы не можем их использовать, поэтому давайте спрячем их.
Сначала начните получать всю информацию о файлах, используя scandir()
// Folder where you want to get all files names from
$dir = "uploads/";
/* Hide this */
$hideName = array('.','..','.DS_Store');
// Sort in ascending order - this is default
$files = scandir($dir);
/* While this to there no more files are */
foreach($files as $filename) {
if(!in_array($filename, $hideName)){
/* echo the name of the files */
echo "$filename"{<br>$filename}";<br>";
}
}
в рамках вашего первого эффекта вы не поместили ofType
в pipe
:
, поэтому вместо:
Login: Observable<any> = this.actions
.ofType(AuthenticationActionTypes.LOGIN)
.pipe(
сделайте:
Login: Observable<any> = this.actions.pipe(
ofType(AuthenticationActionTypes.LOGIN)