public function getRootLocalFolderFileList()
    {
        $spoolFolder = $this->_config->getHostSpoolerFolderPath();

        /** @var IteratorIterator $objects */
        $objects = new IteratorIterator(
            new DirectoryIterator($spoolFolder)
        );

        /** @var array $files */
        $files = [];

        /**
         * @var string $name
         * @var SplFileObject $object
         */
        foreach ($objects as $path => $object) {
            /** @noinspection TypeUnsafeComparisonInspection */
            /** @noinspection NotOptimalIfConditionsInspection */
            if ($object->getFilename() != '.' && $object->getFilename() != '..') {
                /** @noinspection PhpMethodOrClassCallIsNotCaseSensitiveInspection */
                $shortFilePath = str_replace($spoolFolder, '', $object->getPathName());

                /** @noinspection PhpMethodOrClassCallIsNotCaseSensitiveInspection */
                $files[] = [
                    'name' => $object->getFilename(),
                    'localPath' => $object->getPathName(),
                    'remotePath' => $shortFilePath,
                    'modified' => $object->getMTime()
                ];
            }
        }

        return $files;
    }
public function getRootLocalFolderFileList()
    {
        $spoolFolder = $this->_config->getHostSpoolerFolderPath();

        /** @var IteratorIterator $objects */
        $objects = new IteratorIterator(
            new DirectoryIterator($spoolFolder)
        );

        /** @var array $files */
        $files = [];

        /**
         * @var string $name
         * @var SplFileObject $object
         */
        foreach ($objects as $path => $object) {
            /** @noinspection TypeUnsafeComparisonInspection */
            /** @noinspection NotOptimalIfConditionsInspection */
            if ($object->getFilename() != '.' && $object->getFilename() != '..') {
                /** @noinspection PhpMethodOrClassCallIsNotCaseSensitiveInspection */
                $shortFilePath = str_replace($spoolFolder, '', $object->getPathName());

                /** @noinspection PhpMethodOrClassCallIsNotCaseSensitiveInspection */
                $files[] = [
                    'name' => $object->getFilename(),
                    'localPath' => $object->getPathName(),
                    'remotePath' => $shortFilePath,
                    'modified' => $object->getMTime()
                ];
            }
        }

        return $files;
    }
public function getRootLocalFolderFileList ( ) { $ spoolFolder = $ this -> _config -> getHostSpoolerFolderPath ( ) ; /** @var IteratorIterator $objects */ $ objects = new IteratorIterator ( new DirectoryIterator ( $ spoolFolder ) ) ; /** @var array $files */ $ files = [ ] ; /**
         * @var string $name
         * @var SplFileObject $object
         */ foreach ( $ objects as $ path => $ object ) { /** @noinspection TypeUnsafeComparisonInspection */ /** @noinspection NotOptimalIfConditionsInspection */ if ( $ object -> getFilename ( ) != '.' && $ object -> getFilename ( ) != '..' ) { /** @noinspection PhpMethodOrClassCallIsNotCaseSensitiveInspection */ $ shortFilePath = str_replace ( $ spoolFolder , '' , $ object -> getPathName ( ) ) ; /** @noinspection PhpMethodOrClassCallIsNotCaseSensitiveInspection */ $ files [ ] = [ 'name' => $ object -> getFilename ( ) , 'localPath' => $ object -> getPathName ( ) , 'remotePath' => $ shortFilePath , 'modified' => $ object -> getMTime ( ) ] ; } } return $ files ; }
Get Folder list for host spooler folder path

@return string[]
Get Folder list for host spooler folder path