Lines Matching full:folder
14 name = mh.getcontext() # name of current folder
15 mh.setcontext(name) # set name of current folder
19 list = mh.listsubfolders(name) # direct subfolders of given folder
20 list = mh.listallsubfolders(name) # all subfolders of given folder
22 mh.makefolder(name) # create new folder
23 mh.deletefolder(name) # delete folder -- must have no subfolders
25 f = mh.openfolder(name) # new open folder object
28 path = f.getfullname() # folder's full pathname
29 path = f.getsequencesfilename() # full pathname of folder's sequences file
30 path = f.getmessagefilename(n) # full pathname of message n in folder
32 list = f.listmessages() # list of messages in folder (as numbers)
39 dict = f.getsequences() # dictionary of sequences in folder {name: list}
40 f.putsequences(dict) # write sequences back to folder
43 f.removemessages(list) # remove messages in list from folder
44 f.refilemessages(list, tofolder) # move messages in list to other folder
87 __all__ = ["MH","Error","Folder","Message"]
131 """Return the name of the current folder."""
133 'Current-Folder')
138 """Set the name of the current folder."""
141 f.write("Current-Folder: %s\n" % context)
156 """Return the names of the subfolders in a given folder
157 (prefixed with the given folder name)."""
184 """Return the names of subfolders in a given folder, recursively."""
212 """Return a new Folder object for the named folder."""
213 return Folder(self, name)
216 """Create a new folder (or raise os.error if it cannot be created)."""
217 protect = pickline(self.profile, 'Folder-Protect')
225 """Delete a folder. This removes files in the folder but not
226 subdirectories. Raise os.error if deleting the folder itself fails."""
242 class Folder: class
243 """Class representing a particular folder."""
250 raise Error, 'no folder %s' % name
254 return 'Folder(%r, %r)' % (self.mh, self.name)
261 """Return the full pathname of the folder."""
265 """Return the full pathname of the folder's sequences file."""
269 """Return the full pathname of a message in the folder."""
281 """Return the list of messages currently present in the folder.
298 """Return the set of sequences for the folder."""
318 """Write the set of sequences back to the folder."""
356 # Observed behavior: test for empty folder is done first
492 'tofolder' is an open folder object."""
667 self.folder = f
676 return 'Message(%s, %s)' % (repr(self.folder), self.number)
727 part = SubMessage(self.folder, n, mf)
754 f, n, fp = self.folder, self.number, self.fp