Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Deleting a watched folder in Windows ALWAYS rise an [Error: watch EPERM] #4337

@arboleya

Description

@arboleya

Tested on Windows 7 (32bits):

fs = require 'fs'

fs.mkdirSync 'test', '0755'

watcher = fs.watch 'test', ->
    unless fs.existsSync 'test'
        console.log 'folder deleted'
        watcher.close() 

watcher.on 'error', (err)->
    console.log err

fs.rmdirSync 'test'

Output:

{ [Error: watch EPERM] code: 'EPERM', errno: 'EPERM', syscall: 'watch' }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions