'initialize module, by setting soft-chroot-directory
Sets soft-chroot directory and \'enabled\'-flag
Args:
self (SoftChroot) : self
chdir (string) : absolute path to soft-chroot
Raises:
SoftChrootInitError: when chdir doesn\'t exist'

def initialize(self, chdir):

    orig_chdir = chdir
    if chdir:
        chdir = chdir.strip()
    if chdir:
        if (not os.path.isdir(chdir)):
            raise SoftChrootInitError(2, "SOFT-CHROOT    is    requested,    but    the    folder    doesn't    exist", orig_chdir)
        self.enabled = True
        self.chdir = (chdir.rstrip(os.path.sep) + os.path.sep)
    else:
        self.enabled = False
