private Stream<Publication.Resource> createResourcesForFolderFiles(ResourceDescriptor sourceFolderDescriptor, String targetFolderUrl,
                                                                       Map<String, Integer> fileNamesTaken, Publication.ResourceAction action) {
        String targetSubFolderUrl = createUniqueTargetResourceUrl(sourceFolderDescriptor, targetFolderUrl, fileNamesTaken);
        return listPrivateFilesFromFolderWithSubFolders(sourceFolderDescriptor)
                .map(sourceFileDescriptor ->
                        createResourceForFileInFolder(
                                sourceFileDescriptor, sourceFolderDescriptor, targetSubFolderUrl, action)
                );
    }
Leaves only required fields for listing.
server/src/main/java/com/epam/aidial/core/server/service/PublicationService.java