Skip to content

mkdir -p issue #154

@boblund

Description

@boblund

Hi,

Really nice repo. There is an issue when mkdir -p dir1/dir2 is used in a watched directory. Only the creation of dir1 is reported. Then if file1 is added in dir2 it is not reported. Then when a file2 is added in dir1, the following is reported: creation dir1/file2, creation dir2, creation of dir1/file2 (should be dir2/file1).

Below is the list of commands to create the above dirs/files, the output of watch and ls -R of the watched directory:

Commands

$ mkdir -p tmp/dir1/dir2
$ > tmp/dir1/dir2/file1
$ > tmp/dir1/file2

watch reports

add tmp/dir1
add tmp/dir1/dir2
add tmp/dir1/file2
add tmp/dir1/dir2
add tmp/dir1/file2

ls -R ./tmp

./tmp:
dir1

./tmp/dir1:
dir2	file2

./tmp/dir1/dir2:
file1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions