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

SmbFileTransfer

class SmbFileTransfer : ProtocolFileTransfer

Constructors

<init>

SmbFileTransfer(common: CommonExtension)

Properties

domain

val domain: Property<String!>!

name

Unique identifier.

val name: String

password

val password: Property<String!>!

protocols

val protocols: List<String>

user

val user: Property<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