Skip to content

flow init . does not work #1756

@jribbink

Description

@jribbink

Problem

If trying to initialize a project in the current directory, an error appears:

❌ Command Error: failed to move temp directory to target directory: rename /var/folders/wj/ymk8prxn3638w_53xhj6j4pw0000gn/T/flow-cli-1659395429 /Users/jribbink/repos/dep-test: file exists

Steps to Reproduce

flow init . & select any options

Acceptance Criteria

Should not fail. I would suggest either:

  • Copy files into folder if there are no conflicts
  • Copy files into folder only if empty (this could be checked before prompting the user about anything else)

Metadata

Metadata

Assignees

Labels

BugThe issue represents a bug, malfunction, regression

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions