November 3rd, 2021 12:00 PM EDT
Automation for Field Services & DistributionNovember 3rd, 2021 12:00 PM EDT
Learn how creating a digital workforce can improve your supply chain processes!

Archive is a library for operating with ZIP and TAR packages.


*** Settings ***
Library  RPA.Archive

*** Tasks ***
Creating a ZIP archive
   Archive Folder With ZIP   ${CURDIR}${/}tasks  tasks.zip   recursive=True  include=*.robot  exclude=/.*
   @{files}                  List Archive             tasks.zip
   FOR  ${file}  IN  ${files}
      Log  ${file}
   Add To Archive            .${/}..${/}missing.robot  tasks.zip
   &{info}                   Get Archive Info
from RPA.Archive import Archive

lib = Archive()
lib.archive_folder_with_tar('./tasks', 'tasks.tar', recursive=True)
files = lib.list_archive('tasks.tar')
for file in files: