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
[legend]
Collaboration diagram for Bio.PopGen.Async.DirectoryRetriever:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def get_file
def get_File_list

Public Attributes

 directory
 file_list

Detailed Description

Retrieves a directory content.

Definition at line 108 of file __init__.py.


Constructor & Destructor Documentation

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

Definition at line 112 of file __init__.py.

00112 
00113     def __init__(self, directory):
00114         FileRetriever.__init__(self)
00115         self.directory = 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 __init__.py.

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

Here is the call graph for this function:

Returns the list of available files.

Definition at line 100 of file __init__.py.

00100 
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 __init__.py.

Definition at line 98 of file __init__.py.


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