Skip to content

FileVerification.verify doesn't properly handle 'or' #115

@njdoyle

Description

@njdoyle

I'm taking a file as an argument parameter. I set the type to this:

new FileArgumentType().verifyCanWrite().or().verifyNotExists().verifyCanWriteParent()

What I want to check is if I can write to this file or that I can create and write to this file. This doesn't work because FileVerification.verify() only processes or cases if verifyPresenceAndType fails but not if verifyPermissions fails. or cases should be processed if either of these two checks fail.

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