WIPACrepo / file_catalog

Store file metadata information in a file catalog
MIT License
1 stars 4 forks source link

Enable Querying by Directory for /api/files #77

Closed ric-evans closed 3 years ago

ric-evans commented 3 years ago

Adding a "directory" base argument (which would essentially make a $regex query on the path-name) would be useful.

This could support the "logical_name" path an/or "locations" paths.

ric-evans commented 3 years ago

This will return files (because /api/files), but a similar solution could be used to get sub-directories (/api/dirs?). I don't know how useful that would be.

dsschult commented 3 years ago

This will return files (because /api/files), but a similar solution could be used to get sub-directories (/api/dirs?). I don't know how useful that would be.

My opinion is we shouldn't try to look like a filesystem, because we are not. Users should mostly rely on metadata queries.

I view the "directory" argument as a helper for our use in retrieving multiple files, not a way to navigate a posix filesystem.