aem-plugin / com.cognifide.gradle.aem.common.file.transfer.smb / SmbFileTransfer

SmbFileTransfer

class SmbFileTransfer : ProtocolFileTransfer

Constructors

<init>

SmbFileTransfer(aem: AemExtension)

Properties

domain

var domain: String?

name

Unique identifier.

val name: String

password

var password: String?

protocols

val protocols: List<String>

user

var user: String?

Functions

deleteFrom

Deletes file of given name in directory available at specified URL.

fun deleteFrom(dirUrl: String, fileName: String): Unit

dir

fun dir(dirUrl: String): SmbFile

downloadFrom

Downloads file with given name from directory available at specified URL.

fun downloadFrom(dirUrl: String, fileName: String, target: File): Unit

file

fun file(dirUrl: String, fileName: String): SmbFile

list

Lists files in directory available at specified URL.

fun list(dirUrl: String): List<FileEntry>

stat

Gets file status of given name in directory at specified URL.

fun stat(dirUrl: String, fileName: String): FileEntry?

truncate

Deletes all files in directory available at specified URL.

fun truncate(dirUrl: String): Unit

uploadTo

Uploads file to directory available at specified URL and set given name.

fun uploadTo(dirUrl: String, fileName: String, source: File): Unit

Companion Object Properties

NAME

const val NAME: String