mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[utils] sanitize_path: Fix when path is empty string
				
					
				
			This commit is contained in:
		| @@ -778,7 +778,7 @@ def sanitize_path(s, force=False): | ||||
|         for path_part in norm_path] | ||||
|     if drive_or_unc: | ||||
|         sanitized_path.insert(0, drive_or_unc + os.path.sep) | ||||
|     elif force and s[0] == os.path.sep: | ||||
|     elif force and s and s[0] == os.path.sep: | ||||
|         sanitized_path.insert(0, os.path.sep) | ||||
|     return os.path.join(*sanitized_path) | ||||
| 
 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan