Listing all files within a directory that the current note is in - current folder


Was not sure where to post it. Please move it if it’s incorrect

Onto my issue:

For the life of me I can’t figure out how to make dataview list all files under the directory that the current note is in - I’ve searched the forum and poured through the dataview documentation to no avail

I.E. within the directory for the actual note that contains

table ....

This may be completely stupid of me, but I’d appreciate any help I can get

Many Thanks

1 Like

Hi @gregp ! Consider to use my plugin for this purpose:

it keeps an index file updated by linking the notes placed in that folder.
It’s called Zoottelkeeper, downloadable from the Catalog.



Thank you for the plugin! I enabled the plugin but I don’t see any _Index files yet. Is there something I need to do in order for the index file to be created?

WHERE contains(file.folder, this.file.folder)

Thank you so much :1st_place_medal: I couldn’t find reference to this in the docs. I’ve worked this into my bigger query, and it does exactly what I need :blush:

I shall take a look, but I just wanted to get it working with Dataview for now

Thanks for the reply

1 Like

Hi @bobkitz !

Index file generation is triggered by a file manipulation like creating a file, moving a file to another directory or delete a file.Then the index file is going to be maintained by the plugin.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.