pub fn normalize_folder(raw: &str) -> Result<String, AppError>Expand description
Normalises the folder of a file inside its project group – the place it
gets in the desktop working folder <workspace>/<GROUP>/<folder>/<file>.
Backslashes become /, empty and . segments as well as leading and
trailing slashes are dropped ("" is the top of the group). Refused:
.., names that are not valid on Windows, macOS and Linux (<>:"|?*,
control characters, trailing dots or spaces, CON, NUL, COM1, …) and
paths longer than MAX_FOLDER_LEN or deeper than MAX_FOLDER_DEPTH.