Airship\Cabin\Bridge\Landing\AuthorFiles::moveFile PHP Method

moveFile() public method

public moveFile ( string $authorId, string $cabin = '' )
$authorId string
$cabin string
    public function moveFile(string $authorId, string $cabin = '')
    {
        $this->loadAuthorInfo((int) $authorId);
        $this->files->ensureDirExists($this->root_dir, $cabin);
        $this->files->ensureDirExists($this->root_dir . '/photos', $cabin);
        $dir = $this->determinePath($cabin);
        if (!\in_array($cabin, $this->getCabinNamespaces())) {
            \Airship\redirect($this->airship_cabin_prefix);
        }
        if (empty($_GET['file'])) {
            return $this->commonMoveDir($dir, $cabin);
        }
        return $this->commonMoveFile($_GET['file'], $dir, $cabin);
    }