When a name transform failed for a file at the top level of the transfer,
Path returned an empty name: the only fallback checked the number of path
segments, which is unchanged for a top-level file. The file then failed to
copy on local, or landed on the destination root path itself on bucket
remotes. Path now keeps the original name as soon as a transform fails,
and the baseOnly branch returns the real segment error instead of the
misleading empty-segment one.