Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

174
Views
How to detect if folder or file was opened electron/node

I'm trying to get folder's/file's name when I open those, tryed to handle a fs.watch event but it only works when I rename add or remove the file/folder in folder on which I was handled fs.watch, for example:

//with that code I can only see the changes of files in "FileStorage" folder, but not the action when I open files in it
fs.watch("C:/FileStorage", (eventType, filename) => {
        console.log("\nThe file", filename, "was modified!");
        console.log("The type of change was:", eventType);
 });

have any idea how to do that?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

fs.watch() doesn't watch for file-opening events, unfortunately.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!