is_nonzero_file

negmas.helpers.is_nonzero_file(fpath)[source]

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

Parameters

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

Return type

bool