Package DebTorrent :: Module ConfigDir
[hide private]
[frames] | no frames]

Module ConfigDir

source code

Manage configuration and cache files.

Classes [hide private]
  ConfigDir
Manage configuration and cache files.
Functions [hide private]
boolean
copyfile(oldpath, newpath)
Simple file copy, all in RAM.
source code
Variables [hide private]
string DIRNAME = '.DebTorrent'
the directory name to use for storing config files
  MASTER_CONFIG = '/etc/debtorrent'

Imports: inifile.ini_write, inifile.ini_read, bencode.bencode, bencode.bdecode, types.IntType, types.LongType, types.StringType, types.FloatType, parseargs.defaultargs, __init__.product_name, __init__.version_short, sys, os, time.time, time.strftime, binascii.b2a_hex, binascii.a2b_hex


Function Details [hide private]

copyfile(oldpath, newpath)

source code 
Simple file copy, all in RAM.
Parameters:
  • oldpath (string) - the file name to copy from
  • newpath (string) - the file name to copy to
Returns: boolean
whether the copy was successful