Back to index

python-biopython  1.60
Public Member Functions | Public Attributes
Bio.PopGen.Async.DirectoryRetriever Class Reference
Inheritance diagram for Bio.PopGen.Async.DirectoryRetriever:
Inheritance graph
Collaboration diagram for Bio.PopGen.Async.DirectoryRetriever:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def get_file
def get_File_list

Public Attributes


Detailed Description

Retrieves a directory content.

Definition at line 108 of file

Constructor & Destructor Documentation

def Bio.PopGen.Async.DirectoryRetriever.__init__ (   self,

Definition at line 112 of file

00113     def __init__(self, directory):
00114         FileRetriever.__init__(self)
00115 = directory
00116         walk_list = os.walk(directory)
00117         for dir, dir_list, file_list in walk_list:
00118             for file in file_list:
00119                 self.file_list.append(file[len(directory)+1:])

Member Function Documentation

Reimplemented from Bio.PopGen.Async.FileRetriever.

Definition at line 120 of file

00121     def get_file(self, name):
00122         return open( + os.sep + name)

Here is the call graph for this function:

Returns the list of available files.

Definition at line 100 of file

00101     def get_File_list(self):
00102         '''Returns the list of available files.
00103         '''
00104         return self.file_list

Member Data Documentation

Definition at line 114 of file

Definition at line 98 of file

The documentation for this class was generated from the following file: