'@type name: str
@param name: Base path to use for the directory storage.'

def __init__(self, name):

    self.dname = os.path.abspath(name)
    self._dnamePath = FilePath(name)
    if (not self._dnamePath.isdir()):
        self._dnamePath.createDirectory()
    else:
        for f in glob.glob(self._dnamePath.child('*.new').path):
            os.remove(f)
        replacements = glob.glob(self._dnamePath.child('*.rpl').path)
        for f in replacements:
            old = f[:(-4)]
            if os.path.exists(old):
                os.remove(f)
            else:
                os.rename(f, old)
