question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

relative path support

See original GitHub issue

Currently it’s a pain to write a generic queryfor “everything in current folder”, as you can’t do LIST FROM this.file.folder

I think something like LIST FROM "." or LIST FROM "./subfolder" would be nice

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

14reactions
blacksmithgucommented, Oct 2, 2021

I’ve actually added relative path resolution for some DataviewJS work, so I can probably extend it to queries at this point.

1reaction
s-blucommented, Dec 2, 2022

Hello,

You can do that with help of the folder, not the path implicit field:

LIST
WHERE file.folder = this.file.folder

Path contains the file name, folder does not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Paths explained: Absolute, relative, UNC, and URL—Help
A relative path refers to a location that is relative to a current directory. Relative paths make use of two special symbols, a...
Read more >
Relative Paths - dtSearch Support
A relative path is a way to specify the location of a directory relative to another directory. For example, suppose your documents are...
Read more >
Absolute and Relative Paths
A link that has an absolute path will tell the computer which server to go to and then all the folders that you...
Read more >
Absolute vs Relative Path - Which Should You Be Using?
This guide will explain the two types of links and help you determine the right path for any situation. Relative path vs absolute...
Read more >
File path formats on Windows systems | Microsoft Learn
In this article, learn about file path formats on Windows systems, such as traditional DOS paths, DOS device paths, and universal naming ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found