Package 

Interface FileTransfer

    • Method Summary

      Modifier and Type Method Description
      abstract Boolean handles(String fileUrl) Checks if supports particular URL
      abstract Unit downloadFrom(String dirUrl, String fileName, File target) Downloads file with given name from directory available at specified URL.
      Unit download(String fileUrl, File target) Downloads file from specified URL.
      abstract File download(String fileUrl) Downloads file from specified URL to temporary directory with preserving file name.
      File downloadTo(String fileUrl, File dir) Downloads file from specified URL to specified directory with preserving file name.
      abstract Unit uploadTo(String dirUrl, String fileName, File source) Uploads file to directory available at specified URL and set given name.
      Unit uploadTo(String dirUrl, File source) Uploads file to directory available at specified URL.
      Unit upload(String fileUrl, File source) Uploads file to specified URL.
      abstract Unit deleteFrom(String dirUrl, String fileName) Deletes file of given name in directory available at specified URL.
      Unit delete(String fileUrl) Deletes file available at specified URL.
      abstract List<FileEntry> list(String dirUrl) Lists files in directory available at specified URL.
      abstract Unit truncate(String dirUrl) Deletes all files in directory available at specified URL.
      Boolean exists(String fileUrl) Checks if file at specified URL exists.
      Boolean exists(String dirUrl, String fileName) Checks if file with given name exists in directory at specified URL.
      abstract FileEntry stat(String dirUrl, String fileName) Gets file status of given name in directory at specified URL.
      FileEntry stat(String fileUrl) Gets file status at specified URL.
      • Methods inherited from class com.cognifide.gradle.common.file.transfer.FileTransfer

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait