php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #61216 events only list filenames without path
Submitted: 2012-03-01 10:55 UTC Modified: -
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:1 of 2 (50.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: lucvh at sps dot be Assigned:
Status: Open Package: inotify (PECL)
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2012-03-01 10:55 UTC] lucvh at sps dot be
Description:
------------
The events returned by inotify_read do not include the pathname of the file that triggered the event. This makes it difficult if you are watching multiple locations.
Would it be possible to add the key 'pathname' to the array that is returned ?

The documentation would then become:

An array of inotify events or FALSE if no events was pending and inotify_instance is non-blocking. Each event is an array with the following keys:

    wd is a watch descriptor returned by inotify_add_watch()
    mask is a bit mask of events
    cookie is a unique id to connect related events (e.g. IN_MOVE_FROM and IN_MOVE_TO)
    name is the name of a file (e.g. if a file was modified in a watched directory)
    pathname is the path of a file that triggered the event



Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC