App\Libraries\WatchRecord\InotifyWatchRecord::parse PHP Method

parse() public method

Parse the inotifywait's output. The inotifywait command should be something like: $ inotifywait -rme move,close_write,delete --format "%e %w%f" $MEDIA_PATH.
public parse ( $string )
$string string The output string.
    public function parse($string)
    {
        list($events, $this->path) = explode(' ', $string, 2);
        $this->events = explode(',', $events);
    }