parameters: (self, folder)
docstring: Delete the named folder, which must be empty.
docstring_summary: Delete the named folder, which must be empty.
docstring_tokens: Delete the named folder which must be empty .
function: def remove_folder(self, folder):
          """Delete the named folder, which must be empty."""
          path = os.path.join(self._path, folder)
          entries = os.listdir(path)
          if entries == ['.mh_sequences']:
              os.remove(os.path.join(path, '.mh_sequences'))
          elif entries == []:
              pass
          else:
              raise NotEmptyError('Folder not empty: %s' % self._path)
          os.rmdir(path)
function_tokens: def remove_folder ( self , folder ) : path = os . path . join ( self . _path , folder ) entries = os . listdir ( path ) if entries == [ '.mh_sequences' ] : os . remove ( os . path . join ( path , '.mh_sequences' ) ) elif entries == [ ] : pass else : raise NotEmptyError ( 'Folder not empty: %s' % self . _path ) os . rmdir ( path )