def import_folder(epath, mpoint, secret, automount, autodelete): if _get_items(epath=epath): return True configuration = Configuration() configuration.create_folder(epath,mpoint,automount,autodelete) configuration.save() cfipm = CFIPasswordManager() ans = cfipm.createEncriptedFolder(epath,secret) return True
def add_folder(epath, mpoint, secret, automount, autodelete): print(is_folder_encrypted(epath)) if is_folder_encrypted(epath): raise AlreadyEncrypted() return False """Add new EncFS item to keyring.""" print(_get_items(epath=epath)) if _get_items(epath=epath): return True configuration = Configuration() configuration.create_folder(epath,mpoint,automount,autodelete) configuration.save() cfipm = CFIPasswordManager() cfipm.createEncriptedFolder(epath,secret) # return create_crypted_folder(epath, mpoint, secret)