Back to Listing

Folders for Directus Files

On the files page, currently all files are shown in one large list – ideally we should add folders to this view. Basically I imagine there are new records in the directus_files that are "folders" instead of files:

Something like: We add a "folder_parent" column to "directus_files" – every folder has this value set to NULL (root) or another folder (nested folder), and all files have it set to the folder that it is contained within.

Visually these folders should have some meta data displayed on them (number of files, etc) and all files and folders should be drag&droppable.

Totally agree.

voted up • vtmx

You might consider using a so called "closure table" for storing parent/child relationships instead of just a parent_id column.