is_nonzero_file

negmas.helpers.is_nonzero_file(fpath: str)bool[source]

Whether or not the path is for an existing nonzero file.

Parameters

fpath – path to the file to test. It accepts both str and pathlib.Path