mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-02 18:47:01 -05:00 
			
		
		
		
	Fix #119
This commit is contained in:
		
							parent
							
								
									42d5697a79
								
							
						
					
					
						commit
						ceb2c36f66
					
				@ -41,7 +41,7 @@ def extract(filename, dir):
 | 
				
			|||||||
            prefix = dirname
 | 
					            prefix = dirname
 | 
				
			||||||
    # extract files
 | 
					    # extract files
 | 
				
			||||||
    for fn in filelist:
 | 
					    for fn in filelist:
 | 
				
			||||||
        if not os.path.exists(os.path.dirname(fn)):
 | 
					        if os.path.dirname(fn) and not os.path.exists(os.path.dirname(fn)):
 | 
				
			||||||
            os.makedirs(os.path.dirname(fn))
 | 
					            os.makedirs(os.path.dirname(fn))
 | 
				
			||||||
        out = open( fn, 'wb' )
 | 
					        out = open( fn, 'wb' )
 | 
				
			||||||
        buffer = StringIO( zf.read( fn ))
 | 
					        buffer = StringIO( zf.read( fn ))
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user