mirror of
				https://github.com/ytdl-org/youtube-dl.git
				synced 2025-10-29 09:26:20 -07:00 
			
		
		
		
	Fix directory creation not working with absolute paths
This commit is contained in:
		| @@ -94,6 +94,7 @@ class FileDownloader(object): | ||||
| 		"""Create directory components in filename. Similar to Unix "mkdir -p".""" | ||||
| 		components = filename.split(os.sep) | ||||
| 		aggregate = [os.sep.join(components[0:x]) for x in xrange(1, len(components))] | ||||
| 		aggregate = ['%s%s' % (x, os.sep) for x in aggregate] # Finish names with separator | ||||
| 		for dir in aggregate: | ||||
| 			if not os.path.exists(dir): | ||||
| 				os.mkdir(dir) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user