Skip to content

Conversation

@infeo
Copy link
Member

@infeo infeo commented Apr 5, 2022

Closes #126.

This PR allows to restore also filenames of an orphaned directory, if the dirId file is present.

It is implemented in a failsafe way: If the dirId file does not exists, cannot be read or does not match, the orphan cipher dir is recovered without it.

@infeo infeo added this to the 2.5.0 milestone Apr 5, 2022
@infeo infeo requested a review from overheadhunter April 5, 2022 11:45
@infeo infeo self-assigned this Apr 5, 2022
infeo and others added 2 commits April 5, 2022 17:02
Co-authored-by: Sebastian Stenzel <overheadhunter@users.noreply.github.com>
Co-authored-by: sonarcloud <sonarcloud@users.noreply.github.com>
@infeo infeo requested a review from overheadhunter April 6, 2022 14:14
@infeo infeo requested a review from overheadhunter April 7, 2022 10:08
@infeo
Copy link
Member Author

infeo commented Apr 8, 2022

I just noticed, this PR is not done yet: Since the stepparent dir is created manually, we do not add a dirid file to it, although we should. Because once the user moves the recovered directory, he won't be able to recover the files names again.

@infeo infeo requested a review from overheadhunter April 8, 2022 14:39
@sonarqubecloud
Copy link

sonarqubecloud bot commented Apr 8, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

90.6% 90.6% Coverage
0.0% 0.0% Duplication

@infeo infeo merged commit 8f64e2c into develop Apr 11, 2022
@infeo infeo deleted the feature/126-use-dirid-file-in-orphan-dir-fix branch April 11, 2022 11:01
@infeo infeo modified the milestones: 2.5.0, 2.4.2 May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

If existent, use dirid.c9r to restore filename in orphan dir fix

3 participants