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][source]

Bases: pyquickhelper.filehelper.transfer_api.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][source]
Parameters
  • location – location

  • fLOG – logging function

source on GitHub

retrieve(path, exc=True)[source][source]

Retrieves data from path.

Parameters
  • path – remove location

  • exc – keep exception

Returns

data

source on GitHub

transfer(path, data)[source][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