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.

Is this possible: from this.file.folder

See original GitHub issue

I use some Table-of-Contents dataviews inside folders like my +Inbox. Since you’ve now introduced this, I wonder if something like the following might be possible:

table file.ctime as Created, file.mtime as "Last modified"
from this.file.folder
where file.name != this.file.name
sort file.mtime descending

Note from this.file.folder because the TOC note is inside a folder which might be renamed.

When trying this with 0.2.14, I currently get:

Dataview: Error: 
-- PARSING FAILED --------------------------------------------------

  1 | table file.ctime as Created, file.mtime as "Last modified"
> 2 | from this.file.folder
    |      ^
  3 | where file.name != this.file.name
  4 | sort file.mtime descending

Expected one of the following: 

'!', '(', '-', 'outgoing(', file link, string, tag ('#hello/stuff')

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
blacksmithgucommented, May 5, 2021

Ah, you can indeed hack around it via a WHERE clause. It’s worth noting you no longer need FROM "" if you want to query from everything - just omit the FROM section and it will do so automatically.

2reactions
pdxrlkcommented, Apr 26, 2021

This seems to work, yay:

list from ""
where contains(file.path, this.file.folder) and file.name != this.file.name
sort file.mtime descending
Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows Basics: Working with Files - GCF Global
You can view and organize files and folders using a built-in application known as File Explorer (called Windows Explorer in Windows 7 and...
Read more >
View and edit information about a file, folder, or link in a ...
View information about a file, folder, or link in a document library in Office 365 and edit the information directly in the information...
Read more >
Please assist if possible for a file /folder issue - Super User
I have a problem with a folder. I transferred it from a drive in order to zip it then archive it, How ever...
Read more >
You'll Need to Provide Administrator Permission to Copy This ...
You'll Need to Provide Administrator Permission to Copy This File or Folder.On a Windows 10/8/7 or Vista based computer, the following error ...
Read more >
How to Find Which File or Folder is Currently in Use on ...
How to Find Which File or Folder is Currently in Use on Windows 11 · 1. End application from the Task Manager ·...
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