Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Bogus deleted event when changing case of a filename on Windows #184

Description

@nono

Prerequisites

Description

When changing the case of a filename on Windows, a deleted event is reported before the renamed event. The same happens for a directory.

The renamed event is also a bit misleading: it says the file was renamed to itself, with the same case for old and new path.

Steps to Reproduce

  1. Start the watcher: watcher -v Dir
  2. Rename Dir\Foo to Dir\foo

Expected behavior:

If Foo is a file:

renamed file: Dir\Foo -> Dir\foo

If Foo is a directory:

renamed directory: Dir\Foo -> Dir\foo

Actual behavior:

If Foo is a file:

deleted file: Dir\foo
renamed file: Dir\foo -> Dir\foo

If Foo is a directory:

deleted directory: Dir\foo
renamed directory: Dir\foo -> Dir\foo

Reproduces how often:

Always

Versions

Master

Additional Information

On windows, the filename is not case-sensitive, so if you do a stat on the old filename (Foo), it will give you the stats for the new filename (foo).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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