(self, secret)
Creates a new directry at `self.storage_path` and adds it to the
        BTSync object to be synced with the given `secret`. The secret is
        assumed valid.

        Parameters
        ----------
        secret : str
            BTSync secret string referencing a directory of html files. This
            secret is assumed to already exist on the network.

        Notes
        -----
        The newly created folder's name will be the given `secret`.
Creates a new directry at `self.storage_path` and adds it to the
        BTSync object to be synced with the given `secret`. The secret is
        assumed valid.
Creates a new directry at self . storage_path and adds it to the BTSync object to be synced with the given secret . The secret is assumed valid .
def init_secret(self, secret):
        """ Creates a new directry at `self.storage_path` and adds it to the
        BTSync object to be synced with the given `secret`. The secret is
        assumed valid.

        Parameters
        ----------
        secret : str
            BTSync secret string referencing a directory of html files. This
            secret is assumed to already exist on the network.

        Notes
        -----
        The newly created folder's name will be the given `secret`.

        """
        path = os.path.join(self.storage_path, secret)
        if not os.path.exists(path):
            os.mkdir(path)
        else:
            msg = 'init_secret called with existing secret: {}'.format(path)
            logger.debug(msg)
        self._watcher.addPath(path)
        self.btsync.add_folder(path, secret)
        logger.debug('Directory added to BTSync: {}'.format(path))
def init_secret ( self , secret ) : path = os . path . join ( self . storage_path , secret ) if not os . path . exists ( path ) : os . mkdir ( path ) else : msg = 'init_secret called with existing secret: {}' . format ( path ) logger . debug ( msg ) self . _watcher . addPath ( path ) self . btsync . add_folder ( path , secret ) logger . debug ( 'Directory added to BTSync: {}' . format ( path ) )