public class PathFileTransfer
extends AbstractFileTransfer
File transfer which is copying files instead of using them directly.
@NotNull public static java.lang.String NAME
public static com.cognifide.gradle.aem.common.file.transfer.generic.PathFileTransfer.Companion Companion
public PathFileTransfer(@NotNull
AemExtension aem)
File transfer which is copying files instead of using them directly.
@NotNull public java.lang.String getName()
Unique identifier.
public boolean handles(@NotNull
java.lang.String fileUrl)
Checks if supports particular URL
public void downloadFrom(@NotNull
java.lang.String dirUrl,
@NotNull
java.lang.String fileName,
@NotNull
java.io.File target)
Downloads file with given name from directory available at specified URL.
public void uploadTo(@NotNull
java.lang.String dirUrl,
@NotNull
java.lang.String fileName,
@NotNull
java.io.File source)
Uploads file to directory available at specified URL and set given name.
@NotNull
public java.util.List<com.cognifide.gradle.aem.common.file.transfer.FileEntry> list(@NotNull
java.lang.String dirUrl)
Lists files in directory available at specified URL.
public void deleteFrom(@NotNull
java.lang.String dirUrl,
@NotNull
java.lang.String fileName)
Deletes file of given name in directory available at specified URL.
public void truncate(@NotNull
java.lang.String dirUrl)
Deletes all files in directory available at specified URL.
@Nullable public FileEntry stat(@NotNull java.lang.String dirUrl, @NotNull java.lang.String fileName)
Gets file status of given name in directory at specified URL.