<?php
/**
* @copyright Copyright (c) 2016, ownCloud, Inc.
*
* @author Joas Schilling <coding@schilljs.com>
* @author Thomas Müller <thomas.mueller@tmit.eu>
* @author Victor Dubiniuk <dubiniuk@owncloud.com>
*
* @license AGPL-3.0
*
* This code is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License, version 3,
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
namespace OC;
use ownCloud\TarStreamer\TarStreamer;
use ZipStreamer\ZipStreamer;
class Streamer {
// array of regexp. Matching user agents will get tar instead of zip
private $preferTarFor = [ '/macintosh|mac os x/i' ];
// streamer instance
private $streamerInstance;
public function __construct(){
/** @var \OCP\IRequest */
$request<{ "translations": {
"Please select a file." : "Будь ласка, оберіть файл.",
"File is too big" : "Файл занадто великий",
"The selected file is not an image." : "Обраний файл не є зображенням.",
"The selected file cannot be read." : "Неможливо прочитати обраний файл.",
"Invalid file provided" : "Надано невірний файл",
"No image or file provided" : "Зображення або файлу не надано",
"Unknown filetype" : "Невідомий тип файлу",
"Invalid image" : "Невірне зображення",
"An error occurred. Please contact your admin." : "Виникла помилка. Будь ласка, зв'яжіться з вашим адміністратором.",
"No temporary profile picture available, try again" : "Тимчасове зображення профілю недоступне, спробуйте ще раз",
"No crop data provided" : "Не вказана інформація про кадрування",
"No valid crop data provided" : "Не вказані коректні дані про кадрування",
"Crop is not square" : "Кадр не є квадратом",
"State token does not match" : "Токен стану не збігається",
"Could not complete login" : "Не вдалося увійти",
"Password reset is disabled" : "Заборонено скидання паролю",
"Couldn't reset password because the token is invalid" : "Неможливо скинути пароль, бо маркер є недійсним",
"Couldn't reset password because the token is expired" : "Неможливо скинути пароль, бо маркер застарів",
"%s password reset" : "%s скидання паролю",
"Password reset" : "Скидання паролю",
"Click the following button to reset your password. If you have not requested the password reset, then ignore this email." : "Щоб скинути Ваш пароль, натисніть кнопку нижче. Якщо ви не робили запиту на