function maybeUpdateAttachedFiles(files)
% For internal use only

% Copyright 2013-2020 The MathWorks, Inc.

% ToDo:Java Eliminate once session in Java is not static
aPool = gcp('nocreate');
if isempty(aPool)
    error(message('parallel:lang:pool:PoolNotRunning'));
else
    % Indicate that we don;t want to block MATLAB waiting to see if there
    % are any errors as a result of sending these files over.
    ASYNC_WAIT = true;
    dctSchedulerMessage(4, 'In maybeUpdateAttachedFiles with files: %s', evalc('disp(files)'));
    aPool.hGetFileManager().maybeUpdateAttachedFiles(files, ASYNC_WAIT);
end
