if(volume != dstVolume){
throw new ErrException(Error.errTrgFolderNotFound);
}
List<FileEntry> added = new ArrayList<FileEntry>();
MapResponse response = new MapResponse();
if(request.cut){
List<String> removed = new ArrayList<String>();
for(String target: request.targets){
added.add(volume.move(target, request.dst));
removed.add(target);
}
response.put("removed", removed);
}else{
for(String target: request.targets){
added.add(volume.copy(target, request.dst));
}
}
response.put("added", added);
return response;
}