Skip to content

FileSink constructor should guard against empty/whitespace paths #287

Closed as not planned
@reubenalfred

Description

@reubenalfred

Hi,

I was just browsing the FileSink file and noticed that the path parameter is only tested for null and doesn't include a test for NullOrWhiteSpace.

Further down in the constructor, it is tested to see if the path's dir is null or white space and creates the directory if the path string is valid, however, no action is specified when the string is empty.

it is an internal constructor, perhaps it may not be that important. i thought i'd let you know...

regards, reuben

filesink

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions