Skip to content

[BUG] Using recurse=false on window creates a file symlink instead of dir. #101

@LucasOe

Description

@LucasOe

Environment

  • OS: Windows 10 21H2
  • Dotter version: 0.12.11

Description

When using the option recurse=false on a symbolic link, dotter creates a file symlink instead of linking the directory.

Reproduction

Create any symbolic link with recurse=false. Example:

[test.files]
"mydir" = { target = "~/mydir", type="symbolic", recurse=false }

Expected behavior

Because using recurse=false would only make sense when linking directories, I would expect ~/mydir to be a directory.

Actual behavior

The created symlink is a file symlink instead of a dir symlink, making it impossible to see the content of the linked directory. The created symlink should have the mode l-r-- but it's mode is la--- instead, when inspecting it with ls. Changing the Rust function linked above when not linking recursively should be enough to fix this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions