Jump to:

3460 Posts in 1064 Topics by 739 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: 724 Views
  • CodeGuerrilla
    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

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.