Skip to main content

Module folders

Module folders 

Source
Expand description

The file browser of a project group: the folders its files have (files.folder, the structure of the engineer’s working folder) and the files in them, one folder level per request (read-only; a big group is never loaded as a whole).

A file belongs to the latest revision of its item, so the browser shows the group the way a new working folder would look. Items whose latest revision has no file are listed at the top of the group, after the files, so every item of the group can be reached from the browser.

§Invariants

  • Permission: a hidden group answers “not found”; nothing of it is counted or listed.

Structs§

Entry
A file of the listed folder with the item it belongs to – or, at the top of the group, an item without files (file_id and filename are null).
Level
One folder of a group.
SubFolder
A folder directly below the listed one.

Constants§

MAX_FOLDERS
More sub-folders than this are never returned for one folder.

Functions§

level
The sub-folders and entries of folder (normalised by domain::normalize_folder; "" = the top) in a project group.