Merge pull request #9 from srgl/fix-rmtree-unicode
Fix removing folder with unicode filenames
This commit is contained in:
		
						commit
						ed8e9b201c
					
				@ -80,7 +80,7 @@ def clearStorage(userStorageDirectory):
 | 
				
			|||||||
            shutil.move(saved, saved_temp)
 | 
					            shutil.move(saved, saved_temp)
 | 
				
			||||||
            saved_bool = True
 | 
					            saved_bool = True
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        shutil.rmtree(userStorageDirectory, ignore_errors=True)
 | 
					        shutil.rmtree(userStorageDirectory.encode('utf-8'), ignore_errors=True)
 | 
				
			||||||
        xbmcvfs.mkdir(userStorageDirectory)
 | 
					        xbmcvfs.mkdir(userStorageDirectory)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if torrents_bool:
 | 
					        if torrents_bool:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user