aztk/internal/cluster_data/node_data.py
def add_dir(self, path: str, dest: str = None, exclude: List[str] = None):
        """
            Zip all the files in the given directory into the zip file handler
        """
        exclude = exclude or []

        for base, _, files in os.walk(path):
            relative_folder = os.path.relpath(base, path)
            for file in files:
                if self._includeFile(file, exclude):
                    self.add_file(os.path.join(base, file), os.path.join(dest, relative_folder), binary=False)

            Zip all the files in the given directory into the zip file handler
        
Zip all the files in the given directory into the zip file handler
Zip all the files in the given directory into the zip file handler
def add_dir(self, path: str, dest: str = None, exclude: List[str] = None):
        exclude = exclude or []
        for base, _, files in os.walk(path):
            relative_folder = os.path.relpath(base, path)
            for file in files:
                if self._includeFile(file, exclude):
                    self.add_file(os.path.join(base, file), os.path.join(dest, relative_folder), binary=False)
def add_dir ( self , path : str , dest : str = None , exclude : List [ str ] = None ) : exclude = exclude or [ ] for base , _ , files in os . walk ( path ) : relative_folder = os . path . relpath ( base , path ) for file in files : if self . _includeFile ( file , exclude ) : self . add_file ( os . path . join ( base , file ) , os . path . join ( dest , relative_folder ) , binary = False )
Zip all the files in the given directory into the zip file handler
Zip all the files in the given directory into the zip file handler
"""
            Zip all the files in the given directory into the zip file handler
        """
self
path
str
dest
str
exclude
List[str]