NOTE: IF YOU WISH TO REPORT A NEW BUG, PLEASE POST A NEW QUESTION AND TAG AS "BUG REPORT". THANK YOU.
The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
loop files recursively isn't working as expected
kayman
Member Posts: 662 Unicorn
I've just noticed that the recursive setting of loop files isn't making any real difference. I created some test setting as follows :
[FileFolder]
File1.txt
File2.txt
File3.txt
File4.txt
[NestedFileFolder]
File5.txt
File6.txt
and only the content of File 1 to 4 is loaded, The files in the nested folder (5 and 6) are ignored whether I select or deselect the recursive setting.
Using RM9.3 on windows 10, and the test files were on a shared network drive
[FileFolder]
File1.txt
File2.txt
File3.txt
File4.txt
[NestedFileFolder]
File5.txt
File6.txt
and only the content of File 1 to 4 is loaded, The files in the nested folder (5 and 6) are ignored whether I select or deselect the recursive setting.
Using RM9.3 on windows 10, and the test files were on a shared network drive
Tagged:
0
Comments
I tried with 5 csv files with the recursive option set on RM 9.3 and Windows 10. It worked fine for me. I have a directory inside which there are two subdirectories.
Maybe it's with txt files, will check and see.
UPDATE: I tried .txt files as well and it did read the files in subdirectories as well. I will try with your's if you can share XML and files. I tried the folder in BOX drive.
Varun
https://www.varunmandalapu.com/
Be Safe. Follow precautions and Maintain Social Distancing
So when my folder is on a networked drive, and there is a folder within, it only shows the content in the master folder and ignores the included folders.
If however I copy the exact same folder structure on my local disc I get the included data as expected.
Whether I use the full path to the shared folder, or select it as a mounted drive doesn't make a difference, only the main folder files are loaded. So I suspect the path logic might be a bit different when using a shared network folder versus a local folder.
I've attached my test process, but as you cannot simulate my server environment it is probably not very useful.
Varun
https://www.varunmandalapu.com/
Be Safe. Follow precautions and Maintain Social Distancing
hmpf, that makes no sense code-wise. It obviously is the same logic in either case, so I have to suspect that for some reason, the subfolders are not listed to Java when it queries the contents of the folder..
And as we rely on whatever Java gets told by the OS, I'm afraid that I cannot do much
Regards,
Marco