lookyloo/lookyloo.py
def capture_dirs(self) -> List[Path]:
        '''Get all the capture directories, sorder from newest to oldest.'''
        for capture_dir in self.capture_dir.iterdir():
            if capture_dir.is_dir() and not capture_dir.iterdir():
                # Cleanup self.capture_dir of failed runs.
                capture_dir.rmdir()
            if not (capture_dir / 'uuid').exists():
                # Create uuid if missing
                with (capture_dir / 'uuid').open('w') as f:
                    f.write(str(uuid4()))
        return sorted(self.capture_dir.iterdir(), reverse=True)
Get all the capture directories, sorder from newest to oldest.
Get all the capture directories, sorder from newest to oldest.
Get all the capture directories sorder from newest to oldest .
def capture_dirs(self) -> List[Path]:
        for capture_dir in self.capture_dir.iterdir():
            if capture_dir.is_dir() and not capture_dir.iterdir():
                capture_dir.rmdir()
            if not (capture_dir / 'uuid').exists():
                with (capture_dir / 'uuid').open('w') as f:
                    f.write(str(uuid4()))
        return sorted(self.capture_dir.iterdir(), reverse=True)
def capture_dirs ( self ) -> List [ Path ] : for capture_dir in self . capture_dir . iterdir ( ) : if capture_dir . is_dir ( ) and not capture_dir . iterdir ( ) : capture_dir . rmdir ( ) if not ( capture_dir / 'uuid' ) . exists ( ) : with ( capture_dir / 'uuid' ) . open ( 'w' ) as f : f . write ( str ( uuid4 ( ) ) ) return sorted ( self . capture_dir . iterdir ( ) , reverse = True )
Get all the capture directories, sorder from newest to oldest.
Get all the capture directories sorder from newest to oldest .
'''Get all the capture directories, sorder from newest to oldest.''' # Cleanup self.capture_dir of failed runs. # Create uuid if missing
self