Skip to content

detect invalid file? #24

@atlgeek007

Description

@atlgeek007

Is it possible to have taglib-ruby raise an exception if it is not passed a valid file?

I'm trying to write a script to automate renaming/moving files from a download folder into my music hierarchy, but the script tends to exit ungracefully when faced with an invalid file, and it doesn't seem to raise an exception that I can catch.

It will simply output TagLib: FileRef::tag() - Called without a valid file., which doesn't give my limited knowledge of Ruby anything to catch and do something more pleasant with.

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