parameters: (self, name)
docstring: Delete a folder.  This removes files in the folder but not
          subdirectories.  Raise os.error if deleting the folder itself fails.
docstring_summary: Delete a folder.  This removes files in the folder but not
          subdirectories.  Raise os.error if deleting the folder itself fails.
docstring_tokens: Delete a folder . This removes files in the folder but not subdirectories . Raise os . error if deleting the folder itself fails .
function: def deletefolder(self, name):
          """Delete a folder.  This removes files in the folder but not
          subdirectories.  Raise os.error if deleting the folder itself fails."""
          fullname = os.path.join(self.getpath(), name)
          for subname in os.listdir(fullname):
              fullsubname = os.path.join(fullname, subname)
              try:
                  os.unlink(fullsubname)
              except os.error:
                  self.error('%s not deleted, continuing...' %
                            fullsubname)
          os.rmdir(fullname)
function_tokens: def deletefolder ( self , name ) : fullname = os . path . join ( self . getpath ( ) , name ) for subname in os . listdir ( fullname ) : fullsubname = os . path . join ( fullname , subname ) try : os . unlink ( fullsubname ) except os . error : self . error ( '%s not deleted, continuing...' % fullsubname ) os . rmdir ( fullname )