Path: Common/FileUtils
% Returns the path to a directory. The default behavior is to return the first match. If a second argument is given the function will return all matches. d may be a partial path provided it is within the current directory. -------------------------------------------------------------------------- Form: p = FindDirectory( d, ~ ) -------------------------------------------------------------------------- ------ Inputs ------ d (1,:) Name of the directory ~ Any second input, returns all matches ------- Outputs ------- p (1,:) Path to the files in the directory OR {:} Cell array of paths if 'all' option is specified --------------------------------------------------------------------------
Back to the Common Module page