Download Multiple Files with subfolders

I think I know whats wrong:

Screenshot_2

fileName is the complete path , eg --> /storage/emulated/0/Android/data//files/files/file.pdf

so this:

Screenshot_3

Would lead to the following path:

/storage/emulated/0/Android/data//files/files/storage/emulated/0/Android/data//files/files/file.pdf

Am I right?

So what would be the correct blocks?