Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
OpenApi: IWPathNamedObject.lookupByPath returns null for existing file
RonaldV
Hi,
I have some java/openapi code that calls IWPathNamedObject.lookupByPath() but that returns null even though the file or directory exists. The javadocs are not very helpfull here.
Anybody seen this before?
Example code:
String path = "/default/main/myBranch/STAGING/templatedata/htblocks/textbox/data/myDirectory";
IWFile iwFile = (IWFile)IWPathNamedObject.lookupByPath(teamsite, path);
BTW, this code works fine for most paths but for some dirs/files it fails.
Thanks for any help, Ronald
Find more posts tagged with
Comments
Bill Klish
Not too familiar with OpenAPI coding. Any chance you can convert this to CS SDK. It has some documentation and is used more widely. Is this some new application or legacy one? If it is new, go the CS SDK route. Open API is no longer supported (or won't be soon...)
Otherwise, I would venture to guess that perhaps there is some sort of permission issues with group sharing, file system setup, etc. Just a guess though.