Package twisted :: Package persisted :: Module filepile :: Class _FilePileStackEntry
[show private | hide private]
[frames | no frames]

Class _FilePileStackEntry


I represent a cursor in an open directory; nothing to see here, move along, move along.
Method Summary
  __init__(self, dirname, loader, pilext, itemext, cmpfunc)
Create a pointer into a directory given with dirname.
  bisectTo(self, name, adjust)
Jump my pointer position to point at a file who compares as closely as possible to name with self.cmpfunc.
  listdir(self, forwards)
If I do not have a cached directory listing, load a directory listing and sort it according to self.cmpfunc.
  makeChild(self, path)
Create a stack entry with similar options for a subpath of the directory I am listing.
  makeCopy(self)
  next(self, forwards)
I AM NOT AN ITERATOR THIS IS JUST A GOOD METHOD NAME.
  prev(self)
synonym for .next(False)

Method Details

__init__(self, dirname, loader=<type 'str'>, pilext='pile', itemext='item', cmpfunc=<built-in function cmp>)
(Constructor)

Create a pointer into a directory given with dirname. Pass in options from a parent FilePile. NOTE THAT CMPFUNC WILL BE IGNORED ON DIRECTORIES THAT HAVE HAD nextFileName USED WITH THE SAME EXTENSION GIVEN IN ITEMEXT.

bisectTo(self, name, adjust=0)

Jump my pointer position to point at a file who compares as closely as possible to name with self.cmpfunc.

listdir(self, forwards=1)

If I do not have a cached directory listing, load a directory listing and sort it according to self.cmpfunc.

makeChild(self, path)

Create a stack entry with similar options for a subpath of the directory I am listing.

next(self, forwards=1)

I AM NOT AN ITERATOR THIS IS JUST A GOOD METHOD NAME. Get the next entry (isSubDirectory, itemOr_FilePileStackEntry). If forwards is False, go backwards.

prev(self)

synonym for .next(False)

Generated by Epydoc 1.1 on Fri Jun 27 03:49:22 2003 http://epydoc.sf.net