Skip to content

How do we check if a file is corrupted? #22464

Description

@acampove

Feature description

Hi,

I have a collection of 500 files and I need to run a sanity check. However I cannot find anything like:

import ROOT

status = ROOT.TFile.check_health('file.root')

if status != 0:
    raise ValueError('message here')

How is the user supposed to know if a file has problems among hundreds?

Alternatives considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions