How to create IVersionablehandle in server side
I have a IFileItem in repository of component, how to get handle of this IFileItem .I only have Ifileitem,getName() value fileName .
Kindly help .
|
2 answers
An IFileItem extends IVersionable, which in turn extends IVersionableHandle.
Comments
Yaswanth Garlapati
commented Nov 22, 11:58 a.m.
Actually I want to update a file(next version )that was already in source control how to do that in server side I also have IFolderHandle I want to re-emphasize that doing anything based on only a 'file name' is very error prone. There could be multiple different files with the same file name, and also such an approach likely breaks down if the file gets renamed (meaning it could have different names in different streams/branches).
|
Hello
To get a handle for an
Ensure proper error handling if the file item isn't found. Let me know if you need further help! Comments
Yaswanth Garlapati
commented Nov 25, 6:13 a.m.
Hi, getFileItemByName is a custom method . Do you have any idea of this method? |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.