cloud-fs/src/main/java/io/activej/remotefs/FsClient.java
default Promise<Map<String, @NotNull FileMetadata>> infoAll(@NotNull Set<String> names) {
		if (names.isEmpty()) return Promise.of(emptyMap());

		Map<String, FileMetadata> result = new HashMap<>();
		return Promises.all(names.stream()
				.map(name -> info(name)
						.whenResult(metadata -> {
							if (metadata != null) {
								result.put(name, metadata);
							}
						})))
				.map($ -> result);
	}
/**
	 * Shortcut to get {@link FileMetadata metadata} of multiple files.
	 *
	 * @param names names of files to fetch metadata for.
	 * @return map of filenames to their corresponding {@link FileMetadata metadata}.
	 * Map contains metadata for existing files only
	 */
Shortcut to get  FileMetadata metadata of multiple files.
@param names names of files to fetch metadata for.
@return map of filenames to their corresponding  FileMetadata metadata.
Map contains metadata for existing files only
Shortcut to get FileMetadata metadata of multiple files . @param names names of files to fetch metadata for . @return map of filenames to their corresponding FileMetadata metadata . Map contains metadata for existing files only
default Promise<Map<String, @NotNull FileMetadata>> infoAll(@NotNull Set<String> names) {
		if (names.isEmpty()) return Promise.of(emptyMap());
		Map<String, FileMetadata> result = new HashMap<>();
		return Promises.all(names.stream()
				.map(name -> info(name)
						.whenResult(metadata -> {
							if (metadata != null) {
								result.put(name, metadata);
							}
						})))
				.map($ -> result);
	}
default Promise < Map < String , @ NotNull FileMetadata > > infoAll ( @ NotNull Set < String > names ) { if ( names . isEmpty ( ) ) return Promise . of ( emptyMap ( ) ) ; Map < String , FileMetadata > result = new HashMap < > ( ) ; return Promises . all ( names . stream ( ) . map ( name -> info ( name ) . whenResult ( metadata -> { if ( metadata != null ) { result . put ( name , metadata ) ; } } ) ) ) . map ( $ -> result ) ; }
Shortcut to get {@link FileMetadata metadata} of multiple files.
Shortcut to get { @link FileMetadata metadata } of multiple files .