Folder::inventory PHP 메소드

inventory() 공개 메소드

Returns the entire content of the directory
public inventory ( ) : array
리턴 array
    public function inventory()
    {
        if (!is_dir($this->root)) {
            return array();
        }
        return $this->inventory = is_null($this->inventory) ? scandir($this->root) : $this->inventory;
    }