public FileTransfer
@NotNull java.lang.String getName()
Unique identifier.
boolean getEnabled()
When enabled, transfer will be considered when finding transfer handling particular URL.
boolean getParallelable()
Determines if operations using this transfer could be done in parallel.
boolean handles(@NotNull
java.lang.String fileUrl)
Checks if supports particular URL
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.
void download(@NotNull
java.lang.String fileUrl,
@NotNull
java.io.File target)
Downloads file from specified URL.
void download(@NotNull
java.lang.String fileUrl)
Downloads file from specified URL to temporary directory with preserving file name.
@NotNull
java.io.File downloadTo(@NotNull
java.lang.String fileUrl,
@NotNull
java.io.File dir)
Downloads file from specified URL to specified directory with preserving file name.
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.
void uploadTo(@NotNull
java.lang.String dirUrl,
@NotNull
java.io.File source)
Uploads file to directory available at specified URL.
void upload(@NotNull
java.lang.String fileUrl,
@NotNull
java.io.File source)
Uploads file to specified URL.
void deleteFrom(@NotNull
java.lang.String dirUrl,
@NotNull
java.lang.String fileName)
Deletes file of given name in directory available at specified URL.
void delete(@NotNull
java.lang.String fileUrl)
Deletes file available at specified URL.
@NotNull
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.
void truncate(@NotNull
java.lang.String dirUrl)
Deletes all files in directory available at specified URL.
boolean exists(@NotNull
java.lang.String fileUrl)
Checks if file at specified URL exists.
boolean exists(@NotNull
java.lang.String dirUrl,
@NotNull
java.lang.String fileName)
Checks if file with given name exists in directory at specified URL.
@Nullable FileEntry stat(@NotNull java.lang.String dirUrl, @NotNull java.lang.String fileName)
Gets file status of given name in directory at specified URL.
@Nullable FileEntry stat(@NotNull java.lang.String fileUrl)
Gets file status at specified URL.