Mercurial > libervia-backend
comparison libervia/backend/core/constants.py @ 4266:9fc3d28bc3f6
core (main): add a mechanism to have a shared temp directory:
this directory may be used to share files between backend and frontends. Normally, an
os-dependent temporary directory is created for that, but if this option is set, the
directory will be created in <local_dir>/<cache_dir>, which may be useful in some use case
(e.g. containerized frontends and backend).
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 12 Jun 2024 22:47:34 +0200 |
parents | a7d4007a8fa5 |
children | 0d7bb4df2343 |
comparison
equal
deleted
inserted
replaced
4265:2417ad1d0f23 | 4266:9fc3d28bc3f6 |
---|---|
191 ## Directories ## | 191 ## Directories ## |
192 | 192 |
193 # directory for components specific data | 193 # directory for components specific data |
194 COMPONENTS_DIR = "components" | 194 COMPONENTS_DIR = "components" |
195 CACHE_DIR = "cache" | 195 CACHE_DIR = "cache" |
196 # Directory to share files between backend and frontends. | |
197 # It will be a sub-dir of <local_dir>/<cache_dir> | |
198 LOCAL_SHARED_DIR = "_SHARED_TMP" | |
199 | |
196 # files in file dir are stored for long term | 200 # files in file dir are stored for long term |
197 # files dir is global, i.e. for all profiles | 201 # files dir is global, i.e. for all profiles |
198 FILES_DIR = "files" | 202 FILES_DIR = "files" |
199 # FILES_LINKS_DIR is a directory where files owned by a specific profile | 203 # FILES_LINKS_DIR is a directory where files owned by a specific profile |
200 # are linked to the global files directory. This way the directory can be | 204 # are linked to the global files directory. This way the directory can be |