Module iqps_backend::pathutils
source · Expand description
Utils for parsing paths on the server and to store/retrieve paths from the database A “slug” is the part of the path common to the question paper and is stored in the database. Depending on the requirements, either a URL (eg: static.metakgp.org) or a path (/srv/static) can be prepended to the slug to get the final path to copy/serve/move the question paper to/from.
Structs§
- A set of paths (absolute, relative, or even URLs) for all three categories of papers (directories)
- Struct containing all the paths and URLs required to parse or create any question paper’s slug, absolute path, or URL.
Enums§
- A category of papers, can also be used to represent the directory where these papers are stored