Show
Ignore:
Timestamp:
07/13/09 14:26:21 (3 years ago)
Author:
jon
Message:

Changing blackboard import to accomodate tufts blackboard packages

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • collective.imstransport/trunk/collective/imstransport/utilities/packagingio.py

    r325 r378  
    5252        return self.files.read(fn) 
    5353 
     54    def getFolderFiles(self, path): 
     55        """ Returns the files within a specific folder """ 
     56        retfiles = [] 
     57        for fn in self.files.namelist(): 
     58            if path +'/' in fn: 
     59                retfiles.append(fn) 
     60        return retfiles 
     61 
    5462 
    5563class ZipfileWriter: 
     
    6270        self.archive = StringIO() 
    6371        self.zipfile = ZipFile(self.archive, 'w', ZIP_DEFLATED) 
    64  
    6572 
    6673    def writeFile(self, path, data):