mirror of
				https://github.com/qurator-spk/modstool.git
				synced 2025-11-03 19:04:13 +01:00 
			
		
		
		
	🐛 Use tqdm's write() instead of logging during scanning
This commit is contained in:
		
							parent
							
								
									6a549968b5
								
							
						
					
					
						commit
						4bb3379ab1
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -90,7 +90,7 @@ def alto_to_dict(alto, raise_errors=True):
 | 
			
		|||
def walk(m):
 | 
			
		||||
    # XXX do this in modstool, too
 | 
			
		||||
    if os.path.isdir(m):
 | 
			
		||||
        logger.info('Scanning directory {}'.format(m))
 | 
			
		||||
        tqdm.write(f'Scanning directory {m}')
 | 
			
		||||
        for f in tqdm(os.scandir(m), leave=False):
 | 
			
		||||
            if f.is_file() and not f.name.startswith('.'):
 | 
			
		||||
                yield f.path
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue