Skip to content
Discussion options

You must be logged in to vote

Solutions

Solution 1: put it in a handler

Found the problem: the await is async so fileobj is not set. Need to put all the things in the handler. Still have an issue formatting the date, but that seems solvable.
Is there a synchronous version of fs.stat() I could use? Hmm...

(await fs.stat('/Users/rcook/Library/Mobile Documents/iCloud~com~omnigroup~OmniGraffle/Documents/2021-2022 Timelines.graffle', (err, result) => { if (err) { console.log(err) } else { p.values.push(['[2021-2022 Timelines.graffle](<file:///Users/rcook/Library/Mobile Documents/iCloud~com~omnigroup~OmniGraffle/Documents/2021-2022 Timelines.graffle>)', result.mtime]); dv.table(['file', 'mtime'], p) } } ))

solution 2: use …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@wealthychef1
Comment options

Comment options

You must be logged in to vote
1 reply
@AB1908
Comment options

Answer selected by wealthychef1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants