Skip to content

File getting truncated with 'beginAt' set to 'end' not always detected #26

@user58823

Description

@user58823

When the 'beginAt' option is set to 'end', before the file grows for the first time, no matter how much that file gets truncated, it will not be detected and all new data is completely skipped until the file grows beyond its original size again.

As far as I can tell, you need to add this.lastSize = stat.size; somewhere inside this if-block:

if(this.firstRead && (this.opts.beginAt == 'end')) {

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