How to get file from root folder
Posted: Tue Jul 11, 2023 10:38 am
Hi
I need to download a file in a specific way:
For Example I have a root folder with folder:
Root/
123456_costam/test.pdf
098766_terefere/test2.pdf
567843_test/test3.pdf
345678_test2/test4.pdf
inside the folders are files
Question is:
How can I download files by looking at the first 5 numbers in root folder?
I need to find file for example test.pdf from folder 123456_costam but in variables I have only 123456 in XML (that is the number of orders.
I will try to get path //root/123456/test.pdf and find this number by regexp (first 6 digits) but variables is always not correct.
I need to download a file in a specific way:
For Example I have a root folder with folder:
Root/
123456_costam/test.pdf
098766_terefere/test2.pdf
567843_test/test3.pdf
345678_test2/test4.pdf
inside the folders are files
Question is:
How can I download files by looking at the first 5 numbers in root folder?
I need to find file for example test.pdf from folder 123456_costam but in variables I have only 123456 in XML (that is the number of orders.
I will try to get path //root/123456/test.pdf and find this number by regexp (first 6 digits) but variables is always not correct.