'django way to get and save a tree of folders and files
When I came across a project to save a tree of files - means including subdirectories and files, not just files - I couldn't find an appropriate solution for the problems.
- note: This question is not the same as this. They speak of two different things, mine: How to save, his/hers: How to show - a tree of files
I do not want to write the code purely by myself or use a library that isn't suggested by Django.
To understand better, let me say a user will upload these three files:
src/statisticstest/testsimg/9744t3vo5.pngthough files can be placed in root or home or any other place in the file system (let me say simpler: files path should be relative)
But the problem is how to get & save files in that manner (with relative path took effect) not the issue to show files that is solved in the question linked above
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
