Skip to content

'Error: 'directory' exists and is not an empty directory' (but it doesn't exist) #530

Closed

Description

@btarm

I'm trying to clone a repo with this code and I'm getting the error ''./tmp' exists and is not an empty directory':

var git = require('nodegit');

var repos = [https repos]

for(i = 0; i<repos.length; i++){
    git.Clone(repos[i], './tmp', {ignoreCert}).catch(function(err) { console.error(err); } );
}

When I run 'cd ./tmp' while in the same directory as the script, it gives me -bash: cd: ./tmp: No such file or directory.

Activity

  1. changed the title [-]'Directory exists and is not an empty directory' (but it doesn't exist)[/-] [+]'Error: 'directory' exists and is not an empty directory' (but it doesn't exist)[/+] on Apr 6, 2015
  2. btarm commented on Apr 7, 2015

    @btarm
    Author

    Realized that this was my fault. The error came when the loop ran the second time.

  3. apgapg commented on Apr 12, 2021

    @apgapg

    Is there any force clone option?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions