RESOLVE resolve path

resolve path, to cwd if relative effectively canonical(absolute(p))

Contents

Inputs

Outputs

% distinct from canonical(), resolve() always returns absolute path
% non-existant path is made absolute relative to pwd

function r = resolve(p, strict)
arguments
  p string
  strict (1,1) logical = false
end

r = stdlib.canonical(stdlib.absolute(p), strict);

end