I have a symbolic link folder on the C drive of the machine running the gateway.
When I try:
it returns False.
When I try the same with a different folder on the C drive with the same permissions, it returns True.
Both folders appear when I try:
Any ideas why the gateway script cannot see the first folder?
this will return true if its a link even if it has no permissions or something
That also returns False.
The docs to mention that for os.path.islink(), it:
False if symbolic links are not supported by the Python runtime
I don’t know if that is the case here.
Seems python 2.7 doesnt suppport symlinks on windows
hmm how about the igntions function? does that find it?
Also no luck. Return False.
hmm you can try going java…
import java.io.File as File
path = "C:\\"
I don’t think it is an issue of python vs java.
Might be some Ignition conf setting need to change. Or maybe Ignition doesn’t like symbolic link folders.
i was able to do both java and pyhton exists on a new junction symlink i made.
islink did not work tho
File. It IS an issue of java vs. python. (Always use java’s alternatives to python’s stdlib in jython if you want predictable, bug-free operation.)
The Java version also did not work.
However it turned out it was a permissions thing in the end. Ignition is a system account user by default, and the system account user had no permission to read/write the mapped drive. And so neither the symbolic folder.
Followed this answer and changed Ignition login to be local user. All works now.