question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

All my pictures are gone

See original GitHub issue

I ran this tool and stopped and continued later because of too many files and used the --trash option. Now after emptying the trash all my pictures are gone in the generated directories.

So the tool has created the entire tree of directories even with dates and locations but all directories are empty.

I even checked if it was working half way and it was fine. All pictures were there in the respective directories and now all are gone.

How is this possible?

— checklist by @jmathai

  • Check for file existence when skipping duplicates and tests
  • Do not allow destination folder to be inside source folder and tests
  • Print statistics after completion and tests

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
jmathaicommented, Nov 11, 2016

Closing this issue after checking off the todo list. Thanks for reporting and helping debug.

0reactions
jmathaicommented, Oct 30, 2016

@sebastiaandegeus I think you’re right that the destination folder being inside the source folder was part of what caused the problem you encountered. Precisely for the reason you explained.

I’ve added checklist of things to address for this issue. You hit a really nasty set of behaviors that are ultimately bugs because the library should know not do delete photos under these circumstances.

This uncovered some other potential bugs if the script were used in a way we hadn’t considered. Feel free to add suggestions to the checklist.

Thanks and sorry about that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Photos Disappeared from Android Gallery - iMobie
Launch Google Photos on your Android phone and go to Library. Head to Trash. The photos that were deleted in the last 60...
Read more >
Android Photos Disappeared? Here's How to Fix It up and ...
Open Google Photos app on your Android phone and go to Library tab from the bottom. · Go to Trash. · Tap Select...
Read more >
Photos Disappeared from Android Phone, What to Do
Part 1. What You Can Do Firstly When Pictures Missing from Gallery · 1. Restart Your Android Phone. One of the quickest ways...
Read more >
If you're missing photos or videos in the Photos app
If you're missing photos or videos in the Photos app · Check your Recently Deleted album · Unhide your photos · Make sure...
Read more >
Find lost photos & videos - Android - Google Photos Help
Step 2: Find photos from apps like Facebook or Instagram · On your Android phone or tablet, open the Google Photos app Photos...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found