public static class FileTransfer.DefaultImpls
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.