Skip to content

Harmonize Path with empty filename between windows and linux.#89

Merged
DrChainsaw merged 1 commit into
shashi:masterfrom
DrChainsaw:mvfix
Jun 7, 2026
Merged

Harmonize Path with empty filename between windows and linux.#89
DrChainsaw merged 1 commit into
shashi:masterfrom
DrChainsaw:mvfix

Conversation

@DrChainsaw
Copy link
Copy Markdown
Collaborator

This fixes inconsistent mv behaviour between windows and linux when filename is an empty string:

julia> t = maketree("root" => [(name="", value=1), (name="a", value=2)])
root/
├─  (Int64)
└─ a (Int64)

Before on linux:

julia> mv(t, r"(.*)", s"\1") # Noop mv
root/
└─ a (Int64)

After on linux (and before on windows):

julia> mv(t, r"(.*)", s"\1")
root/
├─  (Int64)
└─ a (Int64)

Not sure if empty names should even be allowed, but since they are, then I think mv should not silently delete them.

@DrChainsaw DrChainsaw merged commit 4f19847 into shashi:master Jun 7, 2026
3 checks passed
@DrChainsaw DrChainsaw deleted the mvfix branch June 7, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant