Package ts3widgets :: Module filetransfer
[hide private]
[frames] | no frames]

Module filetransfer

source code

Classes [hide private]
  File
Container class to hold all information on a remote TS3 file.
  FileListModel
Itemmodel to abstract the files contained on a TS3 filepath.
  SmartStatusBar
StatusBar which automatically hides itsself, when the message is cleared.
  FileCollector
Collects all files recursively from TS3 filetransfer directories with their corresponding download path.
  FileBrowser
Dialog to display files contained on a TS3 filepath.
  FileCollisionAction
  FileCollisionDialog
Dialog to inform about a filecollision and requests input how to handle it.
  FileTransfer
Abstract container class to hold information on a filetransfer
  Download
Container class to hold information on a download
  Upload
Container class to hold information on an upload
  FileTransferModel
Itemmodel to abstract multiple filetransfers.
  FileTransferDelegate
Delegate which displays a progress bar in the second column of an itemview
  FileTransferDialog
Dialog to display filetransfers from/to a ts3 channel.
Functions [hide private]
list[str]
splitpath(path)
Splits a TS3 filepath into its sections.
source code
str
joinpath(*args)
Joins multiple sections into a TS3 filepath.
source code
str
bytesToStr(size)
Creates a human readable string of a number of bytes.
source code
Function Details [hide private]

splitpath(path)

source code 

Splits a TS3 filepath into its sections.

Parameters:
  • path (str) - the path to split
Returns: list[str]
the list of sections

joinpath(*args)

source code 

Joins multiple sections into a TS3 filepath.

Parameters:
  • args (tuple(str)) - sections to join
Returns: str
the resulting path

bytesToStr(size)

source code 

Creates a human readable string of a number of bytes.

Parameters:
  • size (int) - number of bytes
Returns: str
the converted size and most fitting unit