File Structure Setup
Cerebro Support avatar
Written by Cerebro Support
Updated over a week ago

The default file catalog structure that Cargador creates on your file storage is following:

{Project name}/{upload date}/{filename}

You can change the structure so that it represents a task tree of a corresponding Cerebro project. Cargador service supports up to 10 levels of folders and subfolders.

Use cargador.<linux|mac|win>.conf configuration file to set the format of the tree:

<catalog>
    <income_url_format>$(url[0])/$(date)</income_url_format>
</catalog>

The format of income_url_format is set by variables, which are folder names separated by a slash ‘/’.

The variables of income_url_format can have the following states:

  • $(url[0]), $(url[1]) … $(url[9]) — nesting level. Maximum level - 10.$(url[0]) corresponds to a project name in Cerebro, $(url[1]) corresponds to a task name of the project, $(url[2]) — to its subtask, etc.

An example of setting a 3-level catalog tree:

<catalog>
     <income_url_format>$(url[0])/$(url[1])/$(url[2])</income_url_format></catalog>
  • $(date) — upload date folder;

  • $(date_utc) — upload date folder (in UTC format).

Did this answer your question?