Post

2 followers Follow
0
Avatar

get the current folder directory's UniqueID

Hello,

Is there a way to get the current folder directory's UniqueID?

I can use getGeneiousService(String UniqueID) but that implies I know the UniqueID to begin with. I rather not have to look it up every time (e.g. getGeneiousServices() - there's too many to sift through).

Thanks! 

Matthew Shum

Please sign in to leave a comment.

2 comments

0
Avatar

Hi Matthew,

ServiceUtilities.getSelectedService().getUniqueID() should do it, although you there is not necessarily always a selected folder, so you should check that ServiceUtilities.getSelectedService() is not null first.

Geneious Team 0 votes
Comment actions Permalink