Is there a skill code that I can use to find out the permission of a library instead of clicking on the property button on a library to find out??
Example: When I use the GUI from the lib browser, I am able to find out the permission of a library whether it has write or read permission. My question is is there a Skill code that I can use to find that out instead of clicking on the library's property?
Thanks in advance for your help
In reply to berndfi:
These didn't work for me for some reason, so i found that I had to manually check:
; Manually check access since Virtuoso seems to get it wrong sometimes myCmd = sprintf(nil "/usr/bin/stat -c%%A %s/%s.oa", ddGetObjWritePath(obj), obj->name) textresult=runCmd(myCmd) rexCompile("w") is_writable = rexExecute(textresult)
Where runCmd is defined as:
procedure(runCmd( myCmd ) printf("Executing %s\n" myCmd); myCid = ipcBeginProcess(myCmd) ipcWait(myCid) textresult="" while( outputResult=ipcReadProcess(myCid) textresult=strcat(textresult, outputResult) ) ; while rexCompile("%") textresult = rexReplace(textresult, "%%", 0) printf(textresult) printf("\n") returnval=textresult)
In reply to dfick:
I can't see why those wouldn't work, unless for some reason you're on some strange filesystem maybe. You should contact customer support.