Skip to content

Undo from finder/explorer does not report file eventsΒ #185

@bpasero

Description

@bpasero

Steps:

  • setup parcel watcher according to docs, simply watching a folder [1]
  • create a sub-folder in that watched folder
  • create a file in that sub-folder
  • from the finder (macOS) or explorer (Windows) delete the sub-folder
  • => you get a delete event for that folder
  • undo the operation from the finder / explorer
  • => you get a create event but only for the folder, not for the files within

[1]

const watcher = require('@parcel/watcher');
const path = require('path');

async function main() {
    // Subscribe to events
    let subscription = await watcher.subscribe(process.cwd(), (err, events) => {
        console.log(events);
    });

   
}

main();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions