NTB WPZ Automation - EMail Downloader
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
NTBCloud.NTBWebdav Class Reference

Client For Connecting To NTB's Cloud Via WebDav. More...

Public Member Functions

def __init__ (self, hostname, username, password, max_workers=4)
 Constructor. More...
 
def backup_file (self, file_path, destination_path='')
 Backs up a single file to the correct folder on NTB's Cloud. More...
 
def makeSurePathExists (self, path)
 

Static Public Member Functions

def getPathFromFileName (filename)
 

Public Attributes

 backup_location
 
 client
 

Detailed Description

Client For Connecting To NTB's Cloud Via WebDav.

Constructor & Destructor Documentation

◆ __init__()

def NTBCloud.NTBWebdav.__init__ (   self,
  hostname,
  username,
  password,
  max_workers = 4 
)

Constructor.

Parameters
hostnameThe hostname for NTB's cloud (EX: https://cloud.ntb.ch/)
usernameThe username for someone who has access to the shared folder
passwordThe password for that user

Member Function Documentation

◆ backup_file()

def NTBCloud.NTBWebdav.backup_file (   self,
  file_path,
  destination_path = '' 
)

Backs up a single file to the correct folder on NTB's Cloud.

Parameters
file_pathThe path to the file on the disk that should be backed up

◆ getPathFromFileName()

def NTBCloud.NTBWebdav.getPathFromFileName (   filename)
static

◆ makeSurePathExists()

def NTBCloud.NTBWebdav.makeSurePathExists (   self,
  path 
)

Member Data Documentation

◆ backup_location

NTBCloud.NTBWebdav.backup_location

◆ client

NTBCloud.NTBWebdav.client

The documentation for this class was generated from the following file: