mirror of
				https://github.com/ytdl-org/youtube-dl.git
				synced 2025-10-29 09:26:20 -07:00 
			
		
		
		
	[YoutubeDL] Ignore failure to create existing directory (#27811)
This commit is contained in:
		| @@ -1779,6 +1779,8 @@ class YoutubeDL(object): | ||||
|                     os.makedirs(dn) | ||||
|                 return True | ||||
|             except (OSError, IOError) as err: | ||||
|                 if isinstance(err, OSError) and err.errno == errno.EEXIST: | ||||
|                     return True | ||||
|                 self.report_error('unable to create directory ' + error_to_compat_str(err)) | ||||
|                 return False | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user