function unfreezePath(dirs)
%unfreezePath unfreezes path entries
%   unfreezePath(dirOrDirs) unfreezes each of dirOrDirs. dirOrDirs can be:
%   - char vector
%   - cellstr
%   - string array
%
%   This function calls REHASH if dirOrDirs is non-empty.

% Copyright 2017 The MathWorks, Inc.

% this 'feature' returns a char vector output - so we need UniformOutput false.
dirs = cellstr(dirs);
cellfun(@(x) feature('DirectoryUnfreeze', x), cellstr(dirs), ...
        'UniformOutput', false);
if ~isempty(dirs)
    % If we made changes, call REHASH to ensure they are noticed.
    rehash();
end
end
