Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Getting list of files in folder which was deleted

Hello to the forum members,

My RTC extension displays information related to files in a workspace. I listen to repository events using the API
void com.ibm.team.repository.client.util.IEventSource.addGenericListener(IConfigurationUpdateEvent.CONFIGURATION_UPDATED, IListener arg1)

A possible event - user deletes a folder in his RTC (Eclipse) project and checks-in this change. I need to update my display, I'd like to know which files are no longer valid (were deleted because they are under the deleted folder). In such case, the IItemUpdateReport object received by the event will have value for the previous state and the new-current state will be set to null. I tried to use the API IConfiguration.childEntries(java.util.List folderHandles, org.eclipse.core.runtime.IProgressMonitor monitor) on the previous state in order to get the list of files that folder contained before it was deleted. I received a [null] list.

Question: is there an API to receive the list of the files in a deleted folder ?

Thanks,
Gidi

0 votes

Comments

Did you ever figure this out?

No. The files that I store are from an external application. This application stores the data files in a graph structure. If file A points to file B and file B is deleted - file A is modified accordingly by the external app.I have external listener to OS events on files. When file A is saved, my listener is triggered, file A is re-loaded and then I can see in the external app that file B was deleted. So, I don't send update from RTC when files are deleted, the external listener sends notification when their parent files are saved.


Be the first one to answer this question!

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,936
× 457
× 72

Question asked: Jan 27 '15, 5:02 a.m.

Question was seen: 4,013 times

Last updated: Mar 17 '20, 8:11 a.m.

Confirmation Cancel Confirm