NORMALIZE remove redundant elements of path

normalize(p) remove redundant elements of path p path need not exist, normalized path is returned

Contents

Inputs

Outputs

function [n, b] = normalize(file, backend)
arguments
  file string
  backend (1,:) string = ["java", "python", "native"]
end

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

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

b = o.backend;


end