We are using two different systems to export files in html/leap2A (I'm thinking of pdf as a special case of html)
1. Folder structure, as it is in the original account (old system) 2. Single folder, having all files inside one folder adding the artefact id at the beginnigng of the file name so there are no clashes The problem with this is that we have most files duplicated, making the export file almost double the size it should be. We need to decide which system we want to keep, for that we need to consider: If we want to have only the single folder approach, we will be missing the folder structure. This is what we use when importing leap2A and when viewing the site as html. We would need to display all files inside the same folder that can be confusing to the user, specially if there are lots of files. We would need to remove the code that already creates the folder structure, also the one that imports this structure and fix the links to point to the correct place. If we want to have the older system, the folder structure, we would need to adapt the code that looks for the files as id+name to looke for them in the folder structure. I'm not sure why we chose to have a new system, but we need to define which one is best. -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1873118 Title: Files doubling up in an export Status in Mahara: In Progress Bug description: When doing a full export we can get files doubled up appearing in export_info/files/ directory and also subdirectories under this directory. It looks like if the file is used in a page / block it gets put here but at the same time the Files area of the user's Content section is added in with the same folder structure. So, for example if I add a coverimage, img1.jpg, to a page it gets saved in the 'Cover images' folder in files. When I export the user I get a copy of img1.jpg in export_info/files/ directory because of it's association to the exported page and another copy in export_info/files/Cover images/ because of it's relation to the files directory. we used to export files in their directories to avoid name clashes - but now that we export files prefixed with their fileid we don't need to worry about that so we should export all files into export_info/files/ directory without bothering with the subdirectories and have the generated files html page point to export_info/files/ instead To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1873118/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~mahara-contributors Post to : [email protected] Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp

