cloud-fs/src/main/java/io/activej/remotefs/FsClient.java
default Promise<Void> copyAll(Map<String, String> sourceToTarget) {
		if (sourceToTarget.isEmpty()) return Promise.complete();

		return Promises.all(sourceToTarget.entrySet().stream()
				.map(entry -> copy(entry.getKey(), entry.getValue())));
	}
/**
	 * Duplicates files from source locations to target locations.
	 * Basically, calls {@link #copy} for each pair of source file and target file.
	 * Source to target mapping is passed as a map where keys correspond to source files
	 * and values correspond to target files.
	 * <p>
	 * If error occurs while copying any of the files, result promise is completed exceptionally.
	 * Always completes successfully if empty map is passed as an argument.
	 * <p>
	 * Implementations should override this method with optimized version if possible.
	 *
	 * @param sourceToTarget source files to target files mapping
	 */
Duplicates files from source locations to target locations.
Basically, calls  #copy for each pair of source file and target file.
Source to target mapping is passed as a map where keys correspond to source files
and values correspond to target files.

If error occurs while copying any of the files, result promise is completed exceptionally.
Always completes successfully if empty map is passed as an argument.

Implementations should override this method with optimized version if possible.

@param sourceToTarget source files to target files mapping
Duplicates files from source locations to target locations . Basically calls #copy for each pair of source file and target file . Source to target mapping is passed as a map where keys correspond to source files and values correspond to target files . If error occurs while copying any of the files result promise is completed exceptionally . Always completes successfully if empty map is passed as an argument . Implementations should override this method with optimized version if possible . @param sourceToTarget source files to target files mapping
default Promise<Void> copyAll(Map<String, String> sourceToTarget) {
		if (sourceToTarget.isEmpty()) return Promise.complete();
		return Promises.all(sourceToTarget.entrySet().stream()
				.map(entry -> copy(entry.getKey(), entry.getValue())));
	}
default Promise < Void > copyAll ( Map < String , String > sourceToTarget ) { if ( sourceToTarget . isEmpty ( ) ) return Promise . complete ( ) ; return Promises . all ( sourceToTarget . entrySet ( ) . stream ( ) . map ( entry -> copy ( entry . getKey ( ) , entry . getValue ( ) ) ) ) ; }
Duplicates files from source locations to target locations.
Duplicates files from source locations to target locations .