Package gavo :: Package helpers :: Module copying
[frames] | no frames]

Module copying

source code

Helpers for pulling data from CDs, DVDs and similar media.

Classes
  CDHandler
A wrapper for mounting and ejecting CDs.
Functions
 
changeCD(cdHandler) source code
 
readCDs(destBase, cdHandler)
runs a crude UI to read CDs in batch.
source code
Variables
  CTL_CD_EJECT = 0x5309
  CTL_CD_QCHANGE = 0x5325
Function Details

readCDs(destBase, cdHandler)

source code 

runs a crude UI to read CDs in batch.

The idea is that you get a copy-in script by writing something like

import os from gavo import api

rd = api.getRD("foo/bar") cd = CDHandler("/dev/cdrom", "mnt/cd") copying.readCDs(os.path.join(rd.resdir, "raw"), cd)