parameters: (path)
return_statement: return int(output) if rc == 0 else -1
docstring: Counts object files in archive.
      1 argument is needed - file path
      Returns - number of objects in archive, or negative number (-1) if error occurred
docstring_summary: Counts object files in archive.
      1 argument is needed - file path
      Returns - number of objects in archive, or negative number (-1) if error occurred
docstring_tokens: Counts object files in archive . 1 argument is needed - file path Returns - number of objects in archive or negative number ( - 1 ) if error occurred
function: def archive_object_count(path):
      """Counts object files in archive.
      1 argument is needed - file path
      Returns - number of objects in archive, or negative number (-1) if error occurred
      """
      output, rc, _ = CmdRunner.run_cmd([AR, path, '--object-count'], buffer_output=True)
      return int(output) if rc == 0 else -1
function_tokens: def archive_object_count ( path ) : output , rc , _ = CmdRunner . run_cmd ( [ AR , path , '--object-count' ] , buffer_output = True ) return int ( output ) if rc == 0 else - 1