mirror of
				https://github.com/k4yt3x/video2x.git
				synced 2025-10-31 04:40:59 +01:00 
			
		
		
		
	Merge pull request #634 from snixon/checking_output
Adding check for valid output path
This commit is contained in:
		
						commit
						3f457907b6
					
				| @ -586,6 +586,9 @@ def main() -> int: | |||||||
|         if not args.input.is_file(): |         if not args.input.is_file(): | ||||||
|             logger.critical("Input path is not a file") |             logger.critical("Input path is not a file") | ||||||
|             return 1 |             return 1 | ||||||
|  |         if not args.output.parent.exists(): | ||||||
|  |             logger.critical(f"Output directory does not exist: {args.output.parent}") | ||||||
|  |             return 1 | ||||||
| 
 | 
 | ||||||
|         # set logger level |         # set logger level | ||||||
|         if os.environ.get("LOGURU_LEVEL") is None: |         if os.environ.get("LOGURU_LEVEL") is None: | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user