Unpacking
When a delivered parcel is an archive, Fret unpacks it into the same folder as soon as every volume of the archive has arrived. The parcel then moves to the Unpacked list of the dock.
Supported archives
Section titled “Supported archives”| Format | Recognised names | Password |
|---|---|---|
| ZIP | name.zip |
Not supported (encrypted ZIP files are refused) |
| RAR, RAR5 | name.rar, volumes name.part1.rar, name.part2.rar… or name.rar, name.r00, name.r01… |
Yes |
| 7z | name.7z, volumes name.7z.001, name.7z.002… |
Yes |
A split archive is unpacked once, from its first volume, when all its volumes are delivered. Archives are looked for folder by folder, so a consignment keeps its tree.
Passwords
Section titled “Passwords”Fret tries, in order:
- the password of the shipment, given in New shipment;
- the saved passwords, from Settings, in the order of the list;
- no password at all.
The first one that opens the archive wins.
Options
Section titled “Options”In Settings:
- Automatic unpacking (on by default): unpack as soon as an archive is complete. Turned off, archives stay as they are until you ask for it; turning it back on examines the shipments already delivered.
- Discard the boxes (off by default): delete the archive and its volumes after a successful unpacking. A failed unpacking never deletes anything.
When unpacking fails
Section titled “When unpacking fails”The parcel stays Delivered, its page shows Unpacking pending with the reason, and its tracking history says “Unpacking failed”:
| Reason | What to do |
|---|---|
| Missing or wrong password | Type the password in the field, then Unpack. |
| Missing volume | Check that every volume is part of the shipment, then Unpack. |
| Encrypted ZIP | Not supported: unpack it yourself. |
| Damaged archive | The parcel turns Damaged. Send it back to the dock to download it again, or try Unpack if you think the archive is fine. |
The password typed in Unpack becomes the password of the shipment, and is tried first. The same action exists in the warehouse: Unpack again.
Safety
Section titled “Safety”Unpacking never writes outside the warehouse:
- the archive is first extracted into a hidden temporary folder (
.fret-unpacking-…), then moved into place; - an entry with an absolute path or
..makes the whole archive refused as damaged; - symbolic links are skipped;
- an existing file is never overwritten: the new one is named
name (2).ext.
What an unpacking placed in the warehouse is recorded, so that Delete the files in the warehouse removes it too.