HARD_LINK_COUNT get the number of hard links to a file

Contents

inputs

Outputs

Java backend references:

function [c, b] = hard_link_count(file, backend)
arguments
  file string
  backend (1,:) string = ["java", "python", "sys"]
end

o = stdlib.Backend(mfilename(), backend);

if isscalar(file)
  c = o.func(file);
else
  c = arrayfun(o.func, file);
end

b = o.backend;
end