module filehelper.transfer_api_file

Inheritance diagram of pyquickhelper.filehelper.transfer_api_file

Short summary

module pyquickhelper.filehelper.transfer_api_file

API to move files using FTP

source on GitHub

Classes

class

truncated documentation

TransferAPIFile

Defines an API to transfer files over another location.

Methods

method

truncated documentation

__init__

retrieve

Retrieves data from path.

transfer

It assumes a data holds in memory, tansfer data to path.

Documentation

API to move files using FTP

source on GitHub

class pyquickhelper.filehelper.transfer_api_file.TransferAPIFile(location, fLOG=<function noLOG>)[source]

Bases: TransferAPI

Defines an API to transfer files over another location.

source on GitHub

Parameters:
  • location – location

  • fLOG – logging function

source on GitHub

__init__(location, fLOG=<function noLOG>)[source]
Parameters:
  • location – location

  • fLOG – logging function

source on GitHub

retrieve(path, exc=True)[source]

Retrieves data from path.

Parameters:
  • path – remove location

  • exc – keep exception

Returns:

data

source on GitHub

transfer(path, data)[source]

It assumes a data holds in memory, tansfer data to path.

Parameters:
  • data – bytes

  • path – path to remove location

Returns:

boolean

source on GitHub