Skip to content

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

@btarm

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.

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