Module Storage
source code
Low-level writing of files.
|
|
Storage
Low-level writing of files.
|
|
|
dummy_status(fractionDone=None,
activity=None)
Dummy function to print nothing. |
source code
|
|
logging.Logger
|
logger = logging.getLogger('DebTorrent.BT1.Storage')
the logger to send all log messages to for this module
|
long
|
MAXREADSIZE = 32768
the maximum number of bytes that can be read at a time
|
long
|
MAXLOCKSIZE = 1000000000
the maximum size to lock at a time (windows only)
|
long
|
MAXLOCKRANGE = 3999999999
the maximum range to lock in a file (windows only)
|
|
DebTorrent.piecebuffer.BufferPool
|
_pool = <DebTorrent.piecebuffer.BufferPool instance at 0x2b551...
the buffer for temporary storage of pieces
|
Imports:
piecebuffer.BufferPool,
threading.Lock,
time.time,
time.strftime,
time.localtime,
os,
os.path.exists,
os.path.getsize,
os.path.getmtime,
os.path.basename,
os.path.split,
os.makedirs,
logging,
os.fsync,
bisect.bisect,
PieceBuffer