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__

constructor

retrieve

retrieve 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

constructor

Parameters
  • location – location

  • fLOG – logging function

source on GitHub

__init__(location, fLOG=<function noLOG>)[source][source]

constructor

Parameters
  • location – location

  • fLOG – logging function

source on GitHub

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

retrieve 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