06-28-2019 11:24 AM
Does anyone know if there is anything, such as a new security setting, in recent Windows 10 updates that might cause the Recursive File List VI to become stuck in a loop when certain files are in a folder? Perhaps these files are being flagged as a potential security threat or something. In my case, PDF files saved by a certain PC to our network drive are the cause. When files saved from this one PC are in the folder, recursive file list gets stuck in an everlasting loop. When I remove files saved from that PC, it works fine. There doesn't seem to be anything wrong with the files. If I manually navigate to the folder, they are visible, can be opened and all the contents are intact. I don't see any security warnings in the properties window. This only happens on newer Windows 10 machines. Windows 7 machines aren't having the problem at all and some Windows 10 machines are also not doing it. It just so happens that the PCs that are doing this are all fairly new. Recent aggressive security policies at our company have bothered my software a number of times before and I am inclined to believe it is security related.
Solved! Go to Solution.
06-28-2019 12:14 PM
There is an input to that VI "Continue recursing on Error" that defaults to False. Have you tried changing that to see if it will ignore those files?
06-28-2019 01:22 PM
06-28-2019 01:34 PM
Looks like a bug, but it is not obvious why this happens. Can we blame any specific part of the code? Do you see a fix?
06-28-2019 01:58 PM
The List Folder VI is putting out two folder name array elements with dots in them. It is causing the Build List of Folders case structure to be executed every loop.
06-28-2019 02:01 PM
In the false structure, where the code is building a list of folders, I see a .. as a folder path. It looks like its continually building a path to the folder one up.
06-28-2019 02:07 PM
Can you add a .. to the Folders to Exclude?
06-28-2019 02:14 PM
but what's so special about a dash? is this used as some kind of sentinel value? Is the bug in "list folder"?
It is possible to reduce the problem to a minimal example where, given a certain input, list folder produces an unexpected output?
06-28-2019 02:23 PM
I just attempted it, but the Folders to Exclude function won't work because the Build Path VI is not building the dots into the path. So it just keeps adding the same base path to the array.
06-28-2019 02:30 PM
Same issue seen here. Haven't read thru the full post yet.