Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

Reply
 
Thread Tools Search this Thread
Old 04-22-2013, 05:46 PM   #1
hfpop
Zealot
hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.
 
Posts: 119
Karma: 136410
Join Date: Apr 2011
Device: KPW1 WiFi 5.4.4
Paperwhite - Leftover folders after removing a book

After removing a book on Paperwhite, using the usual interface method (i.e. no USB or otherwise), the book-filename.sdr folder is still there, inside the documents folder. It will have to be removed manually. I find this very annoying.

Is there a solution to this problem? Maybe a script to clean documents folder, written for Kindle Launcher?

Last edited by hfpop; 04-22-2013 at 06:12 PM.
hfpop is offline   Reply With Quote
Old 04-22-2013, 06:55 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 37,665
Karma: 18475502
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Are you using Calibre to manage your content?
JSWolf is offline   Reply With Quote
 
Enthusiast
Old 04-22-2013, 09:18 PM   #3
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021142
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by hfpop View Post
After removing a book on Paperwhite, using the usual interface method (i.e. no USB or otherwise), the book-filename.sdr folder is still there, inside the documents folder. It will have to be removed manually. I find this very annoying.

Is there a solution to this problem? Maybe a script to clean documents folder, written for Kindle Launcher?
Code:
REPORT="/mnt/us/documents/FolderReport.txt"; rm -f $REPORT ; echo "new Report `date`" > $REPORT; IFS=$'\n'; for TEST in $(ls -d /mnt/us/documents/* | grep .sdr); do echo -ne "\r\rFOLDER= $TEST\r" >> $REPORT; TEST2=$(ls -Al "`dirname \"$TEST\"`""/""`echo "$TEST"| sed 's|.*\/\([^\.]*\)\(\..*\)$|\1|g'`".*"" | grep -v 'sdr' | grep "`dirname \"$TEST\"`" ) ; echo "MATCHING DOCUMENT= --[""$TEST2""]--" >> $REPORT; if [ -z "$TEST2" ]; then echo "DELETION CANDIDATE SELECTED $TEST" >> $REPORT ; rm -rf "$TEST" ;fi; done;


something like that

Code:
new Report Tue Apr 23 09:01:22 UTC 2013

FOLDER= /mnt/us/documents/3rd Sight_ A Horror Novel_123.sdr
MATCHING DOCUMENT= --[-rwxr-xr-x    1 root     root        399924 Mar  1 16:22 /mnt/us/documents/3rd Sight_ A Horror Novel_123.azw3]--

FOLDER= /mnt/us/documents/Ash_123.sdr
MATCHING DOCUMENT= --[-rwxr-xr-x    1 root     root        759140 Sep 20  2012 /mnt/us/documents/Ash_123.azw3]--

FOLDER= /mnt/us/documents/Battery-2013-02-28T17.50UTC.sdr
MATCHING DOCUMENT= --[]--
DELETION CANDIDATE SELECTED /mnt/us/documents/Battery-2013-02-28T17.50UTC.sdr

FOLDER= /mnt/us/documents/Chinese Chess Rules - Awak.sdr
MATCHING DOCUMENT= --[-rwxr-xr-x    1 root     root        383635 Feb 27 23:59 /mnt/us/documents/Chinese Chess Rules - Awak.azw3]--

FOLDER= /mnt/us/documents/Cloud Atlas_123.sdr
MATCHING DOCUMENT= --[-rwxr-xr-x    1 root     root       1371188 Apr  7 11:13 /mnt/us/documents/Cloud Atlas_123.azw3]--

FOLDER= /mnt/us/documents/Countdown_ H Hour_123.sdr
MATCHING DOCUMENT= --[-rwxr-xr-x    1 root     root        712620 Jan 11 06:47 /mnt/us/documents/Countdown_ H Hour_123.azw]--

FOLDER= /mnt/us/documents/Csound5.18_manual.sdr
MATCHING DOCUMENT= --[-rwxr-xr-x    1 root     root      11231282 Aug 28  2012 /mnt/us/documents/Csound5.18_manual.pdf]--

FOLDER= /mnt/us/documents/FolderReport.sdr
MATCHING DOCUMENT= --[-rwxr-xr-x    1 root     root          1366 Apr 23 01:15 /mnt/us/documents/FolderReport.txt]--

FOLDER= /mnt/us/documents/IMX50SDG.sdr
MATCHING DOCUMENT= --[-rwxr-xr-x    1 root     root       2182355 Sep 23  2012 /mnt/us/documents/IMX50SDG.pdf]--

FOLDER= /mnt/us/documents/Klingon.sdr
MATCHING DOCUMENT= --[-rwxr-xr-x    1 root     root        277482 Mar  7 03:17 /mnt/us/documents/Klingon.mobi]--

FOLDER= /mnt/us/documents/My Clippings.sdr
MATCHING DOCUMENT= --[]--
DELETION CANDIDATE SELECTED /mnt/us/documents/My Clippings.sdr

FOLDER= /mnt/us/documents/My_Own_Kind_of_Freedom.sdr
MATCHING DOCUMENT= --[-rwxr-xr-x    1 root     root        426966 Mar  8 19:33 /mnt/us/documents/My_Own_Kind_of_Freedom.mobi]--

FOLDER= /mnt/us/documents/Vulcan.sdr
MATCHING DOCUMENT= --[-rwxr-xr-x    1 root     root        651312 Mar  7 03:17 /mnt/us/documents/Vulcan.mobi]--

FOLDER= /mnt/us/documents/WAFs info.sdr
MATCHING DOCUMENT= --[]--
DELETION CANDIDATE SELECTED /mnt/us/documents/WAFs info.sdr

FOLDER= /mnt/us/documents/XWINSYS.sdr
MATCHING DOCUMENT= --[-rwxr-xr-x    1 root     root       1545159 Dec 17 04:00 /mnt/us/documents/XWINSYS.PDF]--

FOLDER= /mnt/us/documents/botsies.sdr
MATCHING DOCUMENT= --[-rwxr-xr-x    1 root     root        168499 Mar 23 18:50 /mnt/us/documents/botsies.mobi]--

FOLDER= /mnt/us/documents/dmesg-2013-04-01T22.09UTC.sdr
MATCHING DOCUMENT= --[-rwxr-xr-x    1 root     root         15583 Apr  1 22:09 /mnt/us/documents/dmesg-2013-04-01T22.09UTC.txt]--

FOLDER= /mnt/us/documents/doc32082.sdr
MATCHING DOCUMENT= --[-rwxr-xr-x    1 root     root        152785 Oct  9  2012 /mnt/us/documents/doc32082.pdf]--

FOLDER= /mnt/us/documents/dotsies.sdr
MATCHING DOCUMENT= --[]--
DELETION CANDIDATE SELECTED /mnt/us/documents/dotsies.sdr

FOLDER= /mnt/us/documents/gtkLog.sdr
MATCHING DOCUMENT= --[-rwxr-xr-x    1 root     root         20480 Apr 15 19:23 /mnt/us/documents/gtkLog.txt]--

FOLDER= /mnt/us/documents/kindle_waf_guide.sdr
MATCHING DOCUMENT= --[-rwxr-xr-x    1 root     root         10292 Sep 24  2012 /mnt/us/documents/kindle_waf_guide.mobi]--

FOLDER= /mnt/us/documents/nadsat.sdr
MATCHING DOCUMENT= --[-rwxr-xr-x    1 root     root        204611 Mar 17 21:32 /mnt/us/documents/nadsat.mobi]--

FOLDER= /mnt/us/documents/nadsat_test.sdr
MATCHING DOCUMENT= --[-rwxr-xr-x    1 root     root          9486 Mar  7 03:18 /mnt/us/documents/nadsat_test.mobi]--


EDITS:
v4 - Fixed typo in menu.json (twice)
v3 - made reports have internal timestamps and to correctly update "most recent" report when sorted by recency.
v2 - Added corrected line-spacing escapes to reports
v1 - Made it work
Attached Thumbnails
Click image for larger version

Name:	Selection_480.png
Views:	187
Size:	14.9 KB
ID:	104818   Click image for larger version

Name:	Selection_481.png
Views:	193
Size:	14.0 KB
ID:	104819   Click image for larger version

Name:	Selection_484.png
Views:	185
Size:	66.4 KB
ID:	104820   Click image for larger version

Name:	Selection_482.png
Views:	197
Size:	66.7 KB
ID:	104821   Click image for larger version

Name:	Selection_483.png
Views:	157
Size:	14.1 KB
ID:	104822  
Attached Files
File Type: zip FolderPruner.zip (1.4 KB, 109 views)

Last edited by twobob; 04-23-2013 at 05:02 AM.
twobob is offline   Reply With Quote
Old 04-22-2013, 10:52 PM   #4
brianinmaine
Addict
brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.
 
brianinmaine's Avatar
 
Posts: 379
Karma: 1277063
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
Hey, cool! Very handy! Thanks!
brianinmaine is offline   Reply With Quote
Old 04-23-2013, 02:24 AM   #5
hfpop
Zealot
hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.
 
Posts: 119
Karma: 136410
Join Date: Apr 2011
Device: KPW1 WiFi 5.4.4
@twobob: Thank you.
hfpop is offline   Reply With Quote
Old 04-23-2013, 02:44 AM   #6
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
Posts: 6,495
Karma: 10683802
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch (Wifi only)
The .sdr is removed specifically when a book is deleted through the Kindle interface and ISN'T in your cloud. I assume Amazon doesn't want people to lose the notes/highlights/bookmarks on their sideloaded books unless they really want it gone.

If you delete a book using calibre, it cleans up after the book as well, removing the .sdr since calibre knows how to write generated .apnx's there.
eschwartz is offline   Reply With Quote
Old 04-23-2013, 07:59 AM   #7
booklover6
Wizard
booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.
 
booklover6's Avatar
 
Posts: 3,767
Karma: 3308722
Join Date: May 2008
Location: PA (USA)
Device: Kobo Aura, HD, Glo, Mini
Removing via Calibre does seem to delete those extra folders/files.
booklover6 is offline   Reply With Quote
Old 04-23-2013, 09:14 AM   #8
hfpop
Zealot
hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.
 
Posts: 119
Karma: 136410
Join Date: Apr 2011
Device: KPW1 WiFi 5.4.4
Quote:
Originally Posted by eschwartz View Post
The .sdr is removed specifically when a book is deleted through the Kindle interface and ISN'T in your cloud.
I am sorry, but I honestly believe this is not true. I removed books using the Kindle interface and the .sdr folders are still there. I have been using Kindle PaperWhite, firmware 5.3.1, 5.3.3 and 5.3.4, all with the same result.
hfpop is offline   Reply With Quote
Old 04-23-2013, 01:11 PM   #9
susan_cassidy
Wizard
susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.
 
Posts: 1,906
Karma: 1704270
Join Date: Jan 2009
Device: Kindle, iPad (not used much for reading)
And the book wasn't in your Archives (cloud)?
susan_cassidy is offline   Reply With Quote
Old 04-23-2013, 01:33 PM   #10
hfpop
Zealot
hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.
 
Posts: 119
Karma: 136410
Join Date: Apr 2011
Device: KPW1 WiFi 5.4.4
No. I was in airplane mode during all this experiment. The original book was sideloaded manually (i.e. without the use of any software other than the OS itself).
hfpop is offline   Reply With Quote
Old 04-23-2013, 01:34 PM   #11
hfpop
Zealot
hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.
 
Posts: 119
Karma: 136410
Join Date: Apr 2011
Device: KPW1 WiFi 5.4.4
I propose the following. Please comment.

Code:
#!/bin/sh

for FILE in `find /mnt/us/documents -name '*.sdr' -print 2>/dev/null` 
do
  FSPEC="${FILE%*.*}.*"
  FOUND=0
  for TEST in $FSPEC 
  do
    if [ -f $TEST ]; then 
      FOUND=1 
    fi
  done
  if [ "$FOUND" -eq 0 ]; then
    rm -rf "$FILE"
  fi
done
hfpop is offline   Reply With Quote
Old 04-23-2013, 02:19 PM   #12
Jwing
Member
Jwing can load mercury with a pitchforkJwing can load mercury with a pitchforkJwing can load mercury with a pitchforkJwing can load mercury with a pitchforkJwing can load mercury with a pitchforkJwing can load mercury with a pitchforkJwing can load mercury with a pitchforkJwing can load mercury with a pitchforkJwing can load mercury with a pitchforkJwing can load mercury with a pitchforkJwing can load mercury with a pitchfork
 
Jwing's Avatar
 
Posts: 23
Karma: 48374
Join Date: Apr 2013
Location: Brazil
Device: Kindle PW
Tks, twobob. It worked great.
Jwing is offline   Reply With Quote
Old 04-24-2013, 01:09 AM   #13
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
Posts: 6,495
Karma: 10683802
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch (Wifi only)
Quote:
Originally Posted by hfpop View Post
No. I was in airplane mode during all this experiment. The original book was sideloaded manually (i.e. without the use of any software other than the OS itself).
That's why I said, IF IT WAS SIDELOADED, the .sdr remains. Long experimentation with my Kindle Touch has led me to this conclusion, that any SIDELOADED books keep the .sdr, any CLOUD books are fully removed (Except for system/thumbnails which gives your cloud book its cover.)

And Whenever I delete a book through calibre, it gets rid of the .sdr no matter what.

The why were just my own speculation.
eschwartz is offline   Reply With Quote
Old 04-25-2013, 08:50 AM   #14
hfpop
Zealot
hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.
 
Posts: 119
Karma: 136410
Join Date: Apr 2011
Device: KPW1 WiFi 5.4.4
FolderPruner 0.2

I attach a an archive counting as version 0.2 of FolderPruner. Essential changes from 0.1:

- no text report is generated
- all folders *.sdr in the substructure of /mnt/us/documents are considered, i.e. all descendants, not only the children.

Iterations:
v1: initial iteration
v2: it allows folder names that include spaces
Attached Files
File Type: zip FolderPruner.zip (1.3 KB, 129 views)

Last edited by hfpop; 04-28-2013 at 06:02 AM.
hfpop is offline   Reply With Quote
Old 04-25-2013, 08:55 AM   #15
hfpop
Zealot
hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.
 
Posts: 119
Karma: 136410
Join Date: Apr 2011
Device: KPW1 WiFi 5.4.4
Quote:
Originally Posted by eschwartz View Post
That's why I said, IF IT WAS SIDELOADED, the .sdr remains.
I apologize. I am not an English native, but this is not what I understood.

Quote:
Originally Posted by eschwartz
The .sdr is removed specifically when a book is deleted through the Kindle interface and ISN'T in your cloud.
hfpop is offline   Reply With Quote
Reply

Tags
launcher add-ons

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Waterstones Screensaver on Paperwhite jforner Amazon Kindle 3 01-02-2013 07:38 AM
K5 Removing "Personal" Label on the Paperwhite centhena Kindle Developer's Corner 17 12-29-2012 05:10 AM
.SDR folders empty when loading MOBI covers on Kindle Paperwhite abarnard Library Management 1 12-25-2012 09:57 PM
How Can I Keep Links in Book Folders BetterRed Calibre 6 04-06-2012 06:38 AM
Folders! I've got folders! - A short review of the BeBook Mini Elsi BeBook 10 09-26-2009 02:47 AM


All times are GMT -4. The time now is 03:59 AM.


MobileRead.com is a privately owned, operated and funded community.