fix: recover dotted directory names#2188
Conversation
Signed-off-by: Jay2006sawant <jay242902@gmail.com>
|
Hey @degenaro ! Could you please approve the workflow runs for this PR? Thanks. |
|
@degenaro Can you please review this? |
PR Review:
|
|
@Jay2006sawant This PR looks pretty good. Please have a look at Claude's suggestions, thx. |
|
@Jay2006sawant Would like to merge this soon. Can you address the 4 issues Claude called out? Thx! |
|
@degenaro Yes, working on it |
Signed-off-by: Jay2006sawant <jay242902@gmail.com>
|
@degenaro PTAL,now! |
|
@degenaro Any updates on this? |
|
Redacted Claude review: |
|
Thanks, agreed on both points! |
Types of changes
develop->main)Quality assurance (all should be covered).
Summary
Fix
trash.recover()so directories with dots in their names, such aspolicy.v1, are restored correctly instead of being treated as files.The recovery logic now checks whether a trashed directory exists before falling back to file recovery, so the dotted-directory case restores successfully as expected.
Add a regression test covering dotted directory names to prevent this issue from returning.
Key links:
Before you merge