MediaFileDirectory targetDirectory =
manager.getMediaFileDirectory(this.selectedDirectory);
for (int index = 0; index < fileIds.length; index++) {
log.debug("Moving media file - " + fileIds[index] + " to directory - " + this.selectedDirectory);
MediaFile mediaFile = manager.getMediaFile(fileIds[index]);
manager.moveMediaFile(mediaFile, targetDirectory);
}
}
if (dirIds != null && dirIds.length > 0) {
log.debug("Processing move of " + dirIds.length + " media files directories.");