sclough Posted March 17, 2017 Share Posted March 17, 2017 I've been having a look at the shared folder preference. I was just wondering if there was an API available to get the contents of the folder that's been selected? I can output the UUID, but that's about it. Ideally so I could get something like an array of all the image contained within a chosen folder. Thanks, Simon Link to comment Share on other sites More sharing options...
Chris.Smith Posted March 17, 2017 Share Posted March 17, 2017 Hi @sclough, @Graham Quince has a tutorial on just this that you can use as a reference. You need the page entitled 'Calling an API' on this tutorial - https://www.frogcommunity.com/understanding-api In this he discusses how to get the contents of a folder from a uuid. Hope that helps Link to comment Share on other sites More sharing options...
sclough Posted March 17, 2017 Author Share Posted March 17, 2017 Thanks Chris. I've just had a look at that and got it partially working. I can find the UUID of the parent folder, and the selected folder. I can also get a list of files contained within. When I use this: "selectFolder": { "type": "sharedfolder", "defaultValue": "|" } I'm only able to get the UUID of the selected folder and not the parent. Is there anyway of finding the UUID of the parent folder for the selected folder? That way the user can select a folder and the files contained within can be listed. Thanks, Simon Link to comment Share on other sites More sharing options...
Graham Quince Posted March 17, 2017 Share Posted March 17, 2017 I discovered the parent folder is a hard coded uuid. It's always EDAAA0E92002F81B92C2DFCD917CAC05E532634CEE5FEBD9 No idea why, but if you use that, it should work for you. Link to comment Share on other sites More sharing options...
sclough Posted March 20, 2017 Author Share Posted March 20, 2017 Thanks @Graham Quince That seems a little odd, I'll give that a try now. Link to comment Share on other sites More sharing options...
Chris.Smith Posted March 24, 2017 Share Posted March 24, 2017 On 17/03/2017 at 16:59, Graham Quince said: I discovered the parent folder is a hard coded uuid. It's always EDAAA0E92002F81B92C2DFCD917CAC05E532634CEE5FEBD9 No idea why, but if you use that, it should work for you. @Graham Quince The reason will blow your mind... 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now