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(file, strict)
if nargin < 2
  strict = false;
end

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

end