Callimachus offers the ability to compress the contents of any directory into what is called a Callimachus ARchive file, or CAR file (.car extension). CAR files are ZIP version 3 format compressions of all contents recursively down a folder tree. This allows for content in Callimachus to be moved around a single instance or transferred between multiple instances with ease. It is also an easy way to move code from development into a production environment without complex merging.

CAR files are the primary means of backing up Callimachus applications.

Callimachus also allows the importation of ZIP files into folders.  A ZIP file cannot be used to import files without file extensions (such as OWL classes).

Export Folder Contents

Content can be exported from the View tab of any folder within Callimachus, including the top level Home folder. 

  1. Select "Export folder contents" from the Main Menu in the upper right.
  2. A CAR file will be downloaded into your computers downloads/ directory.

To unpack a CAR file on your computer just change the extension from .car to .zip and unzip it using software that supports zip 3 format. Unpacking a .car may be useful for storing contents in a revision control system such as Git or SVN. You can see an example of this in action in the sample applications on GitHub

Import Folder Contents

The same way that content can be exported from any folder in Callimachus, content can also be imported. This action can only be taken from the View template of a folder.

  1. Select "Import folder contents" from the Main Menu in the upper right.
  2. Click "Choose files" and select a previously exported .car file (or a .zip file in zip 3 format)
  3. Click the "Import" button and contents will begin to be uploaded. Once the upload is complete the content will be loaded into that folder and you will be redirected back to the View template for the folder.

Importing a .car may be a common action in your workflow but it is a very powerful one. Importing a .car into a folder  permanently deletes  all existing contents of the folder. Make sure to always review your actions and ensure there is nothing you will lose by overwriting the current contents of a folder. 

Common "Gotchas"