cloud-fs/src/main/java/io/activej/remotefs/CachedFsClient.java
@Override
	public Promise<Map<String, FileMetadata>> list(@NotNull String glob) {
		return Promises.toList(cacheClient.list(glob), mainClient.list(glob))
				.map(maps -> FileMetadata.flatten(maps.stream()));
	}
/**
	 * Lists files that are matched by glob. List is combined from cache client files and files that are on server.
	 *
	 * @param glob specified in {@link java.nio.file.FileSystem#getPathMatcher NIO path matcher} documentation for glob patterns
	 * @return promise that is a union of the most actual files from cache client and server
	 */
Lists files that are matched by glob. List is combined from cache client files and files that are on server.
@param glob specified in  java.nio.file.FileSystem#getPathMatcher NIO path matcher documentation for glob patterns
@return promise that is a union of the most actual files from cache client and server
Lists files that are matched by glob . List is combined from cache client files and files that are on server . @param glob specified in java . nio . file . FileSystem#getPathMatcher NIO path matcher documentation for glob patterns @return promise that is a union of the most actual files from cache client and server
@Override
	public Promise<Map<String, FileMetadata>> list(@NotNull String glob) {
		return Promises.toList(cacheClient.list(glob), mainClient.list(glob))
				.map(maps -> FileMetadata.flatten(maps.stream()));
	}
@ Override public Promise < Map < String , FileMetadata > > list ( @ NotNull String glob ) { return Promises . toList ( cacheClient . list ( glob ) , mainClient . list ( glob ) ) . map ( maps -> FileMetadata . flatten ( maps . stream ( ) ) ) ; }
Lists files that are matched by glob.
Lists files that are matched by glob .