// to be sequential because the parent meta file must be adapted. If they would run in parallel, they
// would modify the parent meta folder simultaneously.
Map<Path, SequentialProcess> sameParents = new HashMap<Path, SequentialProcess>();
for (Path file : files) {
// create the process which uploads or updates the file
ProcessComponent uploadProcess;
if (action == FileProcessAction.NEW_FILE)
uploadProcess = ProcessFactory.instance().createNewFileProcess(file.toFile(), networkManager);
else
uploadProcess = ProcessFactory.instance().createUpdateFileProcess(file.toFile(),
networkManager);