I test if pdf are present in the import directory
(in the folder here are the files present:
2000011-764473-146613.pdf
2000113-764682-146608.pdf
if pdf are present then:
for each file I retrieve the variable, here for the first file 146613. I check that the content/146613 directory exists if it does not I create it if it exists I move the le to the content/146613 directory
then I do the same for the second file.
I was thinking of making a listing of the PDF files present in the import directory, to extract the file name and the variable, but I don’t know how to do it, any idea?
Don't worry if you didn't understand this yet, someone can explain in better detail later
I've just tried to do this in Wappler's Set Value, had a bit of trouble with the data formatter. You probably need to type that directly in the code section
I have a problem, it tells me that the folder does not exist yet I ask it to test its existence and if not to create the directory, but I always have the same error