function d = getPerHostFolder(subdir)
% parallel.pool.getPerHostFolder locate per-host subdirectory
%    D = parallel.pool.getPerHostFolder(SUBFOLDER) returns the directory path
%    for the per-host subdirectory SUBFOLDER. Errors if the named directory
%    has not been created.

% Copyright 2014-2017 The MathWorks, Inc.

% Convert any string inputs to character vectors
subdir = convertStringsToChars(subdir);

try
    d = parallel.internal.pool.FolderManagement.getPerHostFolder(subdir);
catch E
    throw(E);
end
end
