Revision a38447ba image_creator/os_type/__init__.py

b/image_creator/os_type/__init__.py
320 320

  
321 321
        * exclude: Exclude all files that follow this pattern.
322 322
        """
323
        if not self.image.g.is_dir(directory):
324
            self.out.warn("Directory: `%s' does not exist!" % directory)
325
            return
326

  
323 327
        maxdepth = None if 'maxdepth' not in kargs else kargs['maxdepth']
324 328
        if maxdepth == 0:
325 329
            return

Also available in: Unified diff