You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the user swaps sd cards the files should stay in the sd card otherwise it might create a weird situation where the files are on the phone, but the sd card is not connected.
To keep track of the user id we can use a ".Trash-" format, like Ubuntu.
To keep track of metadata we can use a separate plain text file, like Ubuntu.
Right correct - for restoration location. How about actually preserving last modified for move operation?
The operation restore must revert all changes from the delete. As the delete operation does a move all changes made by the move must be undone by restore. That includes some timestamps.
@EmmanuelMess Yes. That's why I mentioned we should preserve created and modified date with move operation to begin with. I'm not sure what other timestamps you are referring to.
Maintaining more fields other than restore location should make sense, but I'll leave it upto the person who does the POC.
Yes. That's why I mentioned we should preserve created and modified date with move operation to begin with. I'm not sure what other timestamps you are referring to.
Ah, I misunderstood then. Anyways, a test for the entire metadata should be written, so that we know nothing failed weirdly.
Maintaining more fields other than restore location should make sense, but I'll leave it upto the person who does the POC.
Activity
EmmanuelMess commentedon Jun 15, 2021
If the user swaps sd cards the files should stay in the sd card otherwise it might create a weird situation where the files are on the phone, but the sd card is not connected.
To keep track of the user id we can use a ".Trash-" format, like Ubuntu.
To keep track of metadata we can use a separate plain text file, like Ubuntu.
VishalNehra commentedon Jun 15, 2021
@EmmanuelMess Remind me again why we need metadata file.
EmmanuelMess commentedon Jun 15, 2021
Some metadata gets modified on move afaik (like timestamps), and the need to save the restoration location.
VishalNehra commentedon Jun 15, 2021
@EmmanuelMess Right correct - for restoration location. How about actually preserving last modified for move operation?
EmmanuelMess commentedon Jun 15, 2021
The operation
restoremust revert all changes from thedelete. As thedeleteoperation does amoveall changes made by themovemust be undone byrestore. That includes some timestamps.VishalNehra commentedon Jun 15, 2021
@EmmanuelMess Yes. That's why I mentioned we should preserve created and modified date with move operation to begin with. I'm not sure what other timestamps you are referring to.
Maintaining more fields other than restore location should make sense, but I'll leave it upto the person who does the POC.
EmmanuelMess commentedon Jun 15, 2021
Ah, I misunderstood then. Anyways, a test for the entire metadata should be written, so that we know nothing failed weirdly.
That is a good idea