public static class FileTransfer.DefaultImpls
| Modifier and Type | Method and Description |
|---|---|
static void |
delete(FileTransfer $this,
java.lang.String fileUrl)
Deletes file available at specified URL.
|
static void |
download(FileTransfer $this,
java.lang.String fileUrl,
java.io.File target)
Downloads file from specified URL.
|
static java.io.File |
downloadTo(FileTransfer $this,
java.lang.String fileUrl,
java.io.File dir)
Downloads file from specified URL to specified directory with preserving file name.
|
static boolean |
exists(FileTransfer $this,
java.lang.String fileUrl)
Checks if file at specified URL exists.
|
static boolean |
exists(FileTransfer $this,
java.lang.String dirUrl,
java.lang.String fileName)
Checks if file with given name exists in directory at specified URL.
|
static FileEntry |
stat(FileTransfer $this,
java.lang.String fileUrl)
Gets file status at specified URL.
|
static void |
upload(FileTransfer $this,
java.lang.String fileUrl,
java.io.File source)
Uploads file to specified URL.
|
static void |
uploadTo(FileTransfer $this,
java.lang.String dirUrl,
java.io.File source)
Uploads file to directory available at specified URL.
|
public static void download(FileTransfer $this, @NotNull java.lang.String fileUrl, @NotNull java.io.File target)
Downloads file from specified URL.
@NotNull public static java.io.File downloadTo(FileTransfer $this, @NotNull java.lang.String fileUrl, @NotNull java.io.File dir)
Downloads file from specified URL to specified directory with preserving file name.
public static void uploadTo(FileTransfer $this, @NotNull java.lang.String dirUrl, @NotNull java.io.File source)
Uploads file to directory available at specified URL.
public static void upload(FileTransfer $this, @NotNull java.lang.String fileUrl, @NotNull java.io.File source)
Uploads file to specified URL.
public static void delete(FileTransfer $this, @NotNull java.lang.String fileUrl)
Deletes file available at specified URL.
public static boolean exists(FileTransfer $this, @NotNull java.lang.String fileUrl)
Checks if file at specified URL exists.
public static boolean exists(FileTransfer $this, @NotNull java.lang.String dirUrl, @NotNull java.lang.String fileName)
Checks if file with given name exists in directory at specified URL.
@Nullable public static FileEntry stat(FileTransfer $this, @NotNull java.lang.String fileUrl)
Gets file status at specified URL.