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

		return copyAll(sourceToTarget)
				.then(() -> deleteAll(sourceToTarget.keySet()));
	}
/**
	 * Moves files from source locations to target locations.
	 * Basically, calls {@link #copyAll} with given map and then calls {@link #deleteAll} with source files.
	 * As {@link #deleteAll)} does not guarantee that files will actually be deleted, so does this method.
	 * 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 moving 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.
	 * <p>
	 * <b>This method is non-idempotent</b>
	 *
	 * @param sourceToTarget source files to target files mapping
	 */
Moves files from source locations to target locations.
Basically, calls  #copyAll with given map and then calls  #deleteAll with source files.
As  #deleteAll) does not guarantee that files will actually be deleted, so does this method.
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 moving 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.

This method is non-idempotent

@param sourceToTarget source files to target files mapping
Moves files from source locations to target locations . Basically calls #copyAll with given map and then calls #deleteAll with source files . As #deleteAll ) does not guarantee that files will actually be deleted so does this method . 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 moving 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 . This method is non - idempotent @param sourceToTarget source files to target files mapping
default Promise<Void> moveAll(Map<String, String> sourceToTarget) {
		if (sourceToTarget.isEmpty()) return Promise.complete();
		return copyAll(sourceToTarget)
				.then(() -> deleteAll(sourceToTarget.keySet()));
	}
default Promise < Void > moveAll ( Map < String , String > sourceToTarget ) { if ( sourceToTarget . isEmpty ( ) ) return Promise . complete ( ) ; return copyAll ( sourceToTarget ) . then ( ( ) -> deleteAll ( sourceToTarget . keySet ( ) ) ) ; }
Moves files from source locations to target locations.
Moves files from source locations to target locations .