You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: file_utils.m
    path of file: ./repos/bids-matlab/+bids/+internal
    
    the code of the file until where you have to start completion: function varargout = file_utils(str, varargin)
  %
  % Character array (or cell array of char) handling facility
  %
  % USAGE:
  %
  % To list files or directories (with fullpath if necessary)::
  %
  %   [files, dirs] = bids.internal.file_u
    
function t = canonicalise_path(t, d)
  % ==========================================================================
  % -Canonicalise paths to full path names
  % ==========================================================================
  %
  % canonicalise paths to full path names, removing xxx/./yyy and xxx/../yyy
  % constructs
  %
  % - t must be a cell array of (relative or absolute) paths
  %
  % - d must be a single cell containing the base path of relative paths in t
  %
  mch = '^/';
  if ispc % valid absolute paths
    % Allow drive letter or UNC path
    mch = '^([a-zA-Z]:)|(\\\\[^\\]*)';
  end