Jump to:

3448 Posts in 1062 Topics by 738 members

Data Model Questions

SilverStripe Forums » Data Model Questions » Retriving Folder structures from Files DB

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 719 Views
  • CodeGuerrilla
    Avatar
    Community Member
    105 Posts

    Retriving Folder structures from Files DB Link to this post

    Does anyone know of any SS methods of retrieving Files/Folders recursively from the `Files` DB table I need to build lists of files/folders from a particular directory inside assets/uploads been looking at File/Folder/Filelist API docs but really don't see any methods for doing this, I know I can write my own function and use recursion but really do not want to do this if there is a better way?

    *Edit no matter wrote my own functions to retrieve the files/folders by ParentID still there should be methods in the File or FileSystem ti do this IMO

    719 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.