Git Clone to not empty directory #1496
              
                
                  
                  
                    Answered
                  
                  by
                    Byron
                  
              
          
                  
                    
                      ryanmerolle
                    
                  
                
                  asked this question in
                Q&A
              
            -
| Hello, Thanks for this package! Instead of a traceback resulting, how would I notify the user for a non-empty directory when cloning a repo using the package? Or would I just do better to check the directory first without gitpython? Thanks! | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            Byron
          
      
      
        Sep 21, 2022 
      
    
    Replies: 1 comment 1 reply
-
| 
 It should be possible to catch the exception as well if it's unique enough. Both will work, none is optimal, but that's something we'd have to live with. | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
      Answer selected by
        ryanmerolle
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
It should be possible to catch the exception as well if it's unique enough. Both will work, none is optimal, but that's something we'd have to live with.