Professional Documents
Culture Documents
Personal Open source Business Explore Pricing Blog Support This repository Search Sign in Sign up
media folders with 12k+ files not supported #2060 New issue
AsreportedontheAnkiforums,iftheinternalmemoryorSDcardareonaVFATpartition,
there'salimitofabout12kfilesinafolder,andattemptstowritemorethanthat
manyfilesfail.MostdesktopusersareonNTFS/HFS+/EXT3+whichallscaletothat
manyfilesfine,andasiOSalsousesHFS+,thisissueseemstobelimitedtoolddesktops
onVFATandAnkiDroid.
Perhapstheeasiestsolutionistoprovideanoptiontosavethefilesinazipand
extractthemwhenthey'refirstreferencedonacard,leavingthemthere.Thatwould
minimizeextrawritescomparedtoremovingthemafteracardisdisplayed.Storing
theminlotsofsubfoldersseemsamuchmorecomplicatedsolution:youwouldn'tbe
abletorelyonthehtml<base>tagformediaanylonger,anditwouldmakeitconsiderably
harderforuserstoknowwhichfoldermediaislocatedin.
Forumthreadforreference:https://groups.google.com/forum/?fromgroups#!topic/ankisrs/vrvELhL5V4M
ThankyouDamien,
IactuallymadeamistakewhenIsaid~12kfiles;itwasactuallycloserto~20kfiles
andstronglydependentonthelengthofthefilenames.
Thatworkaroundseemslikeitcouldbeagreatsolution!
hssm added Type-Defect Priority-Medium open DevelopmentVersion labels on Jul 28, 2015
Thanksforthis.PerhapsanotherworkaroundwouldbefunctioninAnkitorenamethe
mediafilestoshorterfilenames.
https://github.com/ankidroid/AnkiAndroid/issues/2060 1/6
11/30/2016 mediafolderswith12k+filesnotsupportedIssue#2060ankidroid/AnkiAndroidGitHub
Alsoseethisthread:
https://groups.google.com/forum/?fromgroups#!topic/ankiandroid/tI_FTtbAqas%5B125%5D
Asperlinkinabovethread,renamingtoshorterfileswouldincreaselimitto65,536
whichismorethanIcurrentlyhaveinmycollection.mediafolder(50,000)butothers
mayhaveevenmore.Additionallythezipfilesolutionhastheadvantagethatit's
MUCHfastertocopythemediafilestothephonewithUSB2.Asperabove,anotherworkaround
(requiresrootandexternalSDslot)istoformatyourSDcardasNTFSorEXT4.
>>Asperabove,anotherworkaround(requiresrootandexternalSDslot)istoformat
yourSDcardasNTFSorEXT4.
Justdidthisanditworked.Besidesroot,youalsoneedanapptomountthecardas
bydefaultAndroidwilljustsayit'sanunsupportedformat.TheappiscalledNtfsSD
andit'sfreeinthePlayStore.
Thanksforyourhelp!
Issue1480hasbeenmergedintothisissue.
OnepossibleoptionthathasnotbeenmentionedyetisExFAT,whichissupportedout
oftheboxonsomedevices.
Issue1469hasbeenmergedintothisissue.
Whataboutmountingthearchivelikee.g.ubuntudoes?So,leavethemp3inthearchive
(zip,tar.gzetc)andaccessthefilesthatway.Peter.
Ifthere'sanysolutionthenit'dbegoodbecauseI'mnotsotechsavvyandrooting
isjustbeyondthescopeofmyability:(
None yet
hssm commented on Jul 28, 2015 Member
Labels
Issue1597hasbeenmergedintothisissue.
accepted
bug
Reported by inigo.aldana on 20130113 19:53:43 Priority-Medium
Milestone
hssm commented on Jul 28, 2015 Member
No milestone
https://github.com/ankidroid/AnkiAndroid/issues/2060 2/6
11/30/2016 mediafolderswith12k+filesnotsupportedIssue#2060ankidroid/AnkiAndroidGitHub
Assignees
Anotherapproachcouldbetousesubfoldersandsortthefilesintothosebyveryspecific
rules. ankidroid
Mediawikidoesthis,whenyoulookatafullsizeimageonWikipedia,youhavesomething
like"/X/XY/"intheURL/pathwithtwohexdigitsXandY. 4 participants
Iamnotsureabouttherules,probablysomekindofhashonthefilename.
IsittruethatthisissueisonlyrelevantforVFATfilesystems?
>IsittruethatthisissueisonlyrelevantforVFATfilesystems?
Yes,onlyFAThasthisverylowlimit.
Butitriedandcouldn'tgetanythingelsetowork.
(Mightberelatedtothefactthatit'sacheapnonamemodel...)
IfyouuseanexternalSDcardthenNTFSisconfirmedtobeworking.It
shouldalsobepossibletoformattheinternalSDcardaseitherNTFSor
EXT3/4withabitmorework,thoughIdon'tthinkanyonehereasreported
doingthisyet.
Oh.
Ihadtriedthe"NtFSMounter",*that*din'twork.
Nowitried"ParagonNTFS",lookslikethatworks.Soi'mjustnowcopyingatonof
mediafiles.:)
CanwegetarealsolutiontothisproblemwithinAnkiDroid'scode?Nestedfoldersas
suggestedby#13wouldbeperfect.MediazipsassuggestedbyDamienwouldbeideal
fortransferspeeds.
AfterupdatingtoJB,Ican'tmountNTFSorEXT3/4anymore.WhichreallysucksasI
hitthefilecountlimitwaytooeasily.ManagingwhichmediafilesIneedforthe
weekisnearlyimpossible.
SinceitseemslikeNTFSisnogoformeunlessIjumpbacktoICS,isthereanygood
workaroundsforthis?Likeascripttosortoutallthemediaoncardsthatwillbe
duewithinthenextweek,and/orascripttorenameallthemediatoshorterfilenames?
None yet
accepted
Itshouldn'tbetoohardtomakeanaddonforAnkiDesktopwhichsplitsthemediafiles
intosubfoldersandupdatesthepathaccordinglyoneachofthenotes.Ithinkitshould bug
workoutoftheboxonAnkiDroid.
Priority-Medium
Youcouldtrygivingitagoyourself...orsomeoneheremayhavealreadymadeone;
IthinkHoussamisdoingthis.
Milestone
No milestone
Reported by perceptualchaos2 on 20130323 01:53:32
https://github.com/ankidroid/AnkiAndroid/issues/2060 3/6
11/30/2016 mediafolderswith12k+filesnotsupportedIssue#2060ankidroid/AnkiAndroidGitHub
Assignees
4 participants
No,I'mnotworkingonanaddon.Imanuallymovedfilesintosubfolders.Istillhad
theminseparatefoldersfrombeforetheupgrade,soitwaseasytotellwhichfiles
belongedtowhichdeck.Thenitwassimplyamatterofchangingmytemplatetohave
<imgsrc="mySubFolder/{{imgfield}}"/>
Ifyourimagefieldalreadyhasthe<img>tagsinit,youwillneedtoremovethem
withthesearchandreplacefeatureinAnki'sbrowser.Itsupportsregex,andtheexample
inthemanualisexactlylikethiscase,soyoucancopyit.OneproblemIraninto
withthat:myfieldswereusingdoublequotes(src="asdf.gif")butAnkiwasshowing
themwithsinglequotes(src='asdf.gif')intheHTMLeditor(ctrl+shift+x),sothe
regexdidn'tworkuntilIfiguredthatoutandchangedthequotestyle.
AhIsee,thanksfortheclarification.Itsoundsverystraightforward;maybeI'lladd
ittotheFAQ.
#19daichi09:
>(...I)sthereanygoodworkaroundsforthis?Like(...)ascripttorenameall>
themediatoshorterfilenames?
Well,itisverymuchnota*good*workaround,asatthemomentitgives*longer*file
names,butmaybemyDehasihlatoraddonattemptcouldbeusedasastartingpoint.
Itdoesgothroughthecollectionandrenamesmediafilesandchangesthecardsto
usethenewfilenames.
Itworksreasonablywellwhenyouonlyhaveoneimageorvideoineachfieldanduse
eachimage/videoononlyonenote.Ifthatisnotthecaseyourcollectionmay(or
maynot)endupinamess.(Itworkedwellenoughforme,soijustleftittherenot
reallyfinishedaftermycollectionwasdone.)
Ofcoursetobeasolutiontothisproblem,youwouldhavetochangethebitsthat
returnthenewfilenameandthosethatdeterminewhatcountsas"problem"files.
Seehttp://ospalh.github.com/ankiaddons/Dehashilator.html
Imentioned(#13)thewayMediawikiusessubfolderslike"4/41/asdf.gif".
Seehttp://www.mediawiki.org/wiki/Manual:$wgHashedUploadDirectorytheyuseMD5hashes
ofthefilename.
Issue1830hasbeenmergedintothisissue.
Actuallywhat'saretheissuespreventingAnkiDroidfromfullysupportingsubfolders?
AsfarasIcanseewithmyowndecksitworksfine.Ihaveorganizedmyfilesinto
subfoldersrecentlybecausehaving50koftheminabigheapiscumbersomeevenwith
agoodfilesystem.IseethatAnkidesktophassomeminorproblemswiththat(it's
droppingfilesalwaysinthemainfolderandnotseeingfilesinsubfolderswhenI
use"CheckMedia")butnothingserious.Itsurelybeatshavingthetabletslowdown
whencopyingorrefusetoacceptsomefilesoverFTPformysteriousreasonswhenthey're
Projects
alltogetherorMTPhangfilemanagerwhenthefolderhastoomanyentries...Sowhy
not? None yet
accepted
bug
hssm commented on Jul 28, 2015 Member
Priority-Medium
Export/Importdoesn'tworkwithsubfolders,and"fullysupporting"means Milestone
thatwewouldtryourbestnottomakeanychangeswhichbreaksubfolders,
whichisn'tsomethingwe'dwanttodo. No milestone
https://github.com/ankidroid/AnkiAndroid/issues/2060 4/6
11/30/2016 mediafolderswith12k+filesnotsupportedIssue#2060ankidroid/AnkiAndroidGitHub
Reported by perceptualchaos2 on 20150116 05:57:21 Assignees
ankidroid
Istherestillnofixforthisproblemasidefromneedingtoreformatasaworkaround?
ImnotsurebutpersonallyIhaventhadanissuewithsynchstaking30
minutesinmonths,beforeitusedtobeanalmostdailyoccurence.I
figuredsomethinghadhappenedbehindthescenestofixit.Goodluck
fixingyourissue.
27lip201511:30<ankidroid@googlecode.com>napisa(a):
My main problem is still with Android's media android.process.media process taking loads of time in the
media directory and eating up the CPU/battery all the time. So even if I understand that dumping all the
media in a single directory may be convenient for the anki developers, I find it poor practice. And I'm a
computer engineer, not a "noncomputerfriendly" person. It definitely would be best to find another option
for this. Either SQL database, either subfolders which would still not 100% fix the process.media problem,
but would somehow be better than only one directory. I consider moving all my media to a web server
rather than having to have to duplicate them on all my devices. I understand that this would break the
"check media" paradigm, but that can be done differently with a plugin.
Reply to this email directly or view it on GitHub
#2060 comment
.
Yes but at the beginning, I wasn't in the end it doesn't change a thing. I also tried adding a dot at the
beginning of the folder name some claim that this would "lure" the media scanner into thinking it's a
system folder and thus not scan it, but it still gets in it, as well as the regular ".nomedia" file, to no avail.
Note that my tablet is not that new, it's a Galaxy Tab 2 10.1, Android 4.1.2. And no I don't plan upgrading it.
Projects
... and just letting you know that beside this media library problem, Anki is a wonderful piece of software. :
None yet
Labels
timrae commented on Jan 30 Member
accepted
I had the same problem with my galaxy S2. I don't have either of the 12k bug
limit or the scanning issues after upgrading to an Xperia, which has a
Priority-Medium
decent internal filesystem.
As far as I'm concerned, they're both legacy issues that can be fixed by Milestone
upgrading to a newer device, so I don't feel it's worthwhile for us to make
No milestone
https://github.com/ankidroid/AnkiAndroid/issues/2060 5/6
11/30/2016 mediafolderswith12k+filesnotsupportedIssue#2060ankidroid/AnkiAndroidGitHub
any big architectural changes. Assignees
On 31/01/2016 8:58 am, "jytou" notifications@github.com wrote:
ankidroid
Reply to this email directly or view it on GitHub
#2060 comment
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2016 GitHub, Inc. Terms Privacy Security Status Help Contact GitHub API Training Shop Blog About
Projects
None yet
Labels
accepted
bug
Priority-Medium
Milestone
No milestone
https://github.com/ankidroid/AnkiAndroid/issues/2060 6/6