История страницы
...
Zip Version 11 (Python)
Группа действий: Файловая система
Описание
Действие создает архив указанной папки или файла.
Иконка
Параметры
Входные параметры
Путь к папке Путь к папке, которую необходимо архивировать
Путь к файлу Путь к файлу, который необходимо архивировать.
Сохранить в Директория, куда должен быть помещен архив
Имя архива Имя для создаваемого архива.
Формат архива Формат создаваемого архива.
При дублировании Действие, которое нужно совершить, если в папке уже существует архив с совпадающим названием..
Пароль Пароль, которым будет защищен доступ к созданному архиву.
Размер архивов Размер архивов, на которые будет разделен файл или папка при архивации.
Единицы измерения Единицы измерения для поля «Размер архивов».
Выходные параметры
Путь к архиву Полный путь до созданного архива
Коллекция архивов Коллекция, содержащая полные пути до созданных архивов.
Настройки
Action group: File system
...
Description
The action creates an archive of the specified folder or file.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Path to folder | Path to the directory that should be compressed |
Свойство
Описание
Тип
Пример заполнения
Обязательность заполнения поля
Параметры
Путь к папке
Robin.FolderPath | C:\doc\img |
Нет
Путь к файлу
No | ||
Path to file | Path to the file to be archived. | Robin.FilePath |
No |
Save to |
Directory, where the archive should be placed | Robin.FolderPath | C:\doc\img |
Yes |
Имя архива
Archive name | Name for the archive. For BZIP2 and XZ formats, the entered information will be ignored and the archive will be created with the name of the selected file. | Robin.String |
Yes |
Формат архива
Archive format | Archive format. 7z is default. | Robin.String |
No |
При дублировании
If duplicated | Action to perform if an archive with the same name already exists in the folder. Default is rename - a number will be added to the name |
Действие, которое нужно совершить, если в папке уже существует архив с совпадающим названием. Доступные варианты значений: переименовать созданный, заменить существующий, добавить в существующий.
По умолчанию переименует - к имени будет добавлена цифра. | Robin.String |
No |
Пароль
Password | Password that will protect access to the created archive. Password protection is supported in 7z, zip, and rar formats. For other formats, the entered information will be ignored and the archive will be created without a password |
. | Robin.Password |
No |
Размер архивов
Archive size | The size of the archives into which the file or folder will be divided during archiving. If the field is not filled in, the division will not occur and only 1 archive will be created. | Robin.Numeric |
Нет
Единицы измерения
No | ||
Units of measurement | Units of measurement for the «Archive size» field». The default value is Mb. | Robin.String |
No |
Путь к архиву
Results | ||||
Archive path | Full path to the created archive | Robin.FilePath |
Коллекция архивов
Archive Collection | A collection containing the full paths to the created archives. The action returns this result only if the «Archive Size» field has been filled in. In this case, the result «Archive Path» will be empty |
. | Robin.Collection |
Особые условия использования
Робот вернет ошибку, если:
Special conditions of use
The robot will return an error if:
- incorrect archive size is specified указан некорректный Размер архивов (<=0)
Логика работы действия при разбиении архива на части:
Поданный архив разбивается на части с указанным размером. Например, архив 900 байт, размер архивов указан 200 байт. Будет создано 5 архивов (4 по 200 байт и 1 по 100). Пути к ним будут прописаны в коллекции.
Разделение архива на части поддерживают форматы: 7z; zip; tar.
Пример использования
Задача
Необходимо создать архивы на основании пути до файла.
Решение
Воспользоваться действием "Zip".
Реализация
...
Logic of operation of the action when splitting the archive into parts:
- The submitted archive is split into parts with the specified size. For example, the archive is 900 bytes, the size of the archives is specified as 200 bytes. 5 archives will be created (4 of 200 bytes and 1 of 100 bytes). The paths to them will be specified in the collection.
Splitting an archive into parts supports the following formats: 7z; zip; tar.
Example of use
Task
You need to create archives based on the file path.
Solution
Use the "Zip" action.
Implementation
- Move the "Zip" action to the workspace.
- Set the parameters of the "Zip" action.
- Click on the "Start" button in the top panel.
Result
The program robot completed successfully.
Archives have been created in the required folder
Результат
Программный робот отработал успешно.
В требуемой папке созданы архивы.