Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mkdir -p issue #154

Open
boblund opened this issue Jan 29, 2021 · 0 comments
Open

mkdir -p issue #154

boblund opened this issue Jan 29, 2021 · 0 comments

Comments

@boblund
Copy link

boblund commented Jan 29, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant