Files
hyperframes/packages/cli/src/utils
Michael Wang cb2b51525e fix(cli): a rename keeps the received-files record listing the moved file (#8112)
* fix(cli): a rename keeps the received-files record listing the moved file

On a disk that tells letter case or Unicode forms apart, a Studio rename to a
name differing only in case or form followed the old spelling, so the record
dropped the file's only line while the file moved to the new name.

- onDiskPath folds a requested name onto an existing entry only when the disk
  opens the same file under both spellings, so the record follows the exact
  path the rename creates, spelled as the move spells it.
- After a move, an old non-media line goes only when the file left its old
  path, sits at the planned path (same identity or content), and another line
  lists that path. Otherwise the line stays, as it does for a delete.
- A refused move keeps a new line for a file another move already put there.

* docs(cli): word a rename helper comment as what it checks now

* test(cli): build the rename test folder by its native real path

On Windows the temp folder can carry an 8.3 short name, which onDiskPath
spells in full, as the native real path does.
2026-11-17 23:27:17 +00:00
..
2026-03-21 22:43:56 -07:00
2026-03-21 22:43:56 -07:00