public function getFileInfo($path, $relPath) {

        if (file_exists($path)) {
            return array(
                'name' => basename($path),
                'uri' => $relPath,
                'mime' => \tao_helpers_File::getMimeType($path),
                'filePath' => $path,
                'size' => filesize($path),
            );
        }

        throw new \tao_models_classes_FileNotFoundException($path);
    }
public function getFileInfo($path, $relPath) {

        if (file_exists($path)) {
            return array(
                'name' => basename($path),
                'uri' => $relPath,
                'mime' => \tao_helpers_File::getMimeType($path),
                'filePath' => $path,
                'size' => filesize($path),
            );
        }

        throw new \tao_models_classes_FileNotFoundException($path);
    }
public function getFileInfo ( $ path , $ relPath ) { if ( file_exists ( $ path ) ) { return array ( 'name' => basename ( $ path ) , 'uri' => $ relPath , 'mime' => \ tao_helpers_File :: getMimeType ( $ path ) , 'filePath' => $ path , 'size' => filesize ( $ path ) , ) ; } throw new \ tao_models_classes_FileNotFoundException ( $ path ) ; }
Get details about file

@param $path
@param $relPath
@return array
@throws \tao_models_classes_FileNotFoundException
Get details about file