Unzipping your zipped folders

During the lifetime of your workspace, you might find the need to uncompress zipped folders which have been added to the file system. In particular, items which are received via Workspace to Workspace Airlock will always arrive as a zip file. There are three ways to unzip these files.

Unzip using the Unzip button

An 'Unzip' button is available in the sidebar for folders which have a .zip extension. Simply select the file you wish to unzip and click the button. You will be presented with a pop-up box that includes information on where your files will be extracted.

You can either add some text to the box which will create a new folder with that name and extract the files there or you can leave the name blank and the extracted files will be added to the current folder of your zip file (e.g. Files). You also have the option to remove the zip file after the contents have been extracted.

Unzip via the R Console

You may choose to unzip your files using the R console. The following code snippet could be reused and adapted to work for your file. The following example assumes that the file you wish to unzip is called ‘unzipMe.zip’, is stored in the Files folder and that you wish to extract your files directly into the Files folder.

zipF <- "/home/workspace/files/unzipMe.zip"
outDir <-"/home/workspace/files"
unzip(zipF, exdir=outDir)

Unzip via a Virtual Desktop

If you have a Virtual Desktop available as part of your workspace, you may find it convenient to use the unzip functions there. Open your Virtual Desktop and find your zip file then use the built-in Windows or Linux functionality to extract your files.


Open the terminal and cd into the directory where your .zip file is located. To extract your zipped file in the current folder, use the following command:

unzip file.zip

To extract the zipped file into a different directory, run:

sudo unzip file.zip -d /path/to/your/folder


Navigate to the folder where your .zip file is located. Right-click on it, select 'Extract All…' and then set the destination folder. Alternatively, you can do this using 7-Zip.

Updated on January 12, 2021

Was this article helpful?

Related Articles

Not the solution you were looking for?
Click the link below to submit a support ticket