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

IO::Notification needs .stat and separate notification for removal #5629

Open
p6rt opened this issue Aug 31, 2016 · 1 comment
Open

IO::Notification needs .stat and separate notification for removal #5629

p6rt opened this issue Aug 31, 2016 · 1 comment
Labels
IO RFC Request For Comments

Comments

@p6rt
Copy link

p6rt commented Aug 31, 2016

Migrated from rt.perl.org#129150 (status was 'new')

Searchable as RT129150$

@p6rt
Copy link
Author

p6rt commented Aug 31, 2016

From liukan@360.cn

Two scenarios will render the following code "useless".

my $p = Promise.new;
IO​::Notification.watch-path( 'a' ).act​: { .event.say; }
await $p;

1. If file or directory 'a' does not exist, no Failure.
2. If 'a' initially exists, then removed/moved, then a new 'a' is created, the new 'a' no longer has the identity of the initial file/dir that was 'a'. Subsequent behavior is same as that of 1.

Lacking a .stat method, and a way of notifying removal, there isn't a good way to track the original target, and figure out nature of the change.

- kan

@p6rt p6rt added IO RFC Request For Comments labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO RFC Request For Comments
Projects
None yet
Development

No branches or pull requests

1 participant