Currently instances of mod_folder with directories within them get flattened. The filenames afterwards are the theoretical path but slashes get sanitized out. A cleaner solution whilst still being safe would be to split the path on slashes and create the missing intermediate directories.
Currently instances of
mod_folder
with directories within them get flattened. The filenames afterwards are the theoretical path but slashes get sanitized out. A cleaner solution whilst still being safe would be to split the path on slashes and create the missing intermediate directories.