Part of lp.registry.scripts.productreleasefinder.walker View In Hierarchy
Known subclasses: lp.registry.scripts.productreleasefinder.walker.FTPWalker, lp.registry.scripts.productreleasefinder.walker.HTTPWalker
Base class for URL walkers. This class is a base class for those wishing to implement protocol specific walkers. Walkers behave much like the scandir.walk() function, but taking a URL and working remotely. A typical usage would be: for (dirpath, dirnames, filenames) in ProtWalker(url): ... Sub-classes are required to implement the open(), list() and close() methods.
Method | __init__ | Undocumented |
Method | walk | Walk through the URL. |
Method | open | Open the FTP connection. |
Method | close | Close the FTP connection. |
Method | list | Return listing of directory. |
Yields (dirpath, dirnames, filenames) for each path under the base; dirnames can be modified as with scandir.walk.
Must be implemented by sub-classes.
Must be implemented by sub-classes.
Must be implemented by sub-classes to return two lists, one of directory names and one of file names; both underneath the directory given.