6.1 Application Files and Folders

By Mark Choate
Last modified: 2006-12-18 15:26:54

Workspace Folders

A workspace folder is selected at startup. It can be any folder, anywhere on the computer that the current user is able to write to. It has no special features and in the current version, there are no special files in a workspace folder. Once a workspace folder is selected, it looks for visible sub-folders, which it treats as domain folders.

Domain Folders

A domain folder is the top-level folder of a web site (or whatever kind of collection of documents you are managing).

When a new domain is created, the following steps take place:

  1. On Mac OSX, the Application Support folder is checked to see if there is a folder that corresponds with the current build (i.e., Metawrite-0.9.4).

  2. If that folder does not exist, it is created. Then the _resources folder is copied from the application's directory (or bundle in the completed application) to the Application Support folder. The _resources folder contains the default stylesheet and images required to build a basic site.

  3. In addition to the _resources folder, a SQLite database of style data is stored there.

  4. Once the support folder exists, then the _resources folder is copied into the domain folder.

In addition to the _resources folder, the following files will also be created:

  • index.html:

  • index.mxml:

  • TOC.html:

Files imported through the Resource View window will be imported into folders residing withing the _resources folder. Also, earlier versions of items are kept in the versions folder. Possible subfolders of _resources:

  • images

  • figures

  • css

  • tables

  • files

  • templates

  • versions

Group Folders

A group is a collection of folders or files. Another way of thinking about it is to think of it as a branch node. It can contain other groups, items, or a combination of the two.

Item Folders

If groups are branch nodes, then items are leaf nodes. An item is content and it cannot have any children (it can have resources associated with it, that can be of a variety of media types - see Resource View).