Airship\Cabin\Bridge\Landing\Proto\FileManager::commonGetFileInfo PHP Method

commonGetFileInfo() protected method

Get information about a file
protected commonGetFileInfo ( string $file, string $path, string $cabin )
$file string
$path string
$cabin string
    protected function commonGetFileInfo(string $file, string $path, string $cabin)
    {
        list($publicPath, $root) = $this->loadCommonData($path, $cabin);
        if (empty($root)) {
            $fileInfo = $this->files->getFileInfo($cabin, null, $file);
        } else {
            $fileInfo = $this->files->getFileInfo($cabin, $root, $file);
        }
        $this->lens('files/info', ['cabins' => $this->getCabinNamespaces(), 'file' => $fileInfo, 'root_dir' => $this->root_dir, 'all_dirs' => $this->files->getDirectoryTree($cabin, $this->root_dir), 'dir' => $path, 'cabin' => $cabin, 'pathinfo' => $publicPath]);
    }