Closed ric-evans closed 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.
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.
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.