MCPcopy Create free account
hub / github.com/buggins/coolreader / initRoots

Method initRoots

android/src/org/coolreader/crengine/Scanner.java:633–655  ·  view source on GitHub ↗
(Map<String, String> fsRoots)

Source from the content-addressed store, hash-verified

631 };
632
633 public void initRoots(Map<String, String> fsRoots)
634 {
635 mRoot.clear();
636 // create recent books dir
637 addRoot( FileInfo.RECENT_DIR_TAG, R.string.dir_recent_books, false);
638
639 // create system dirs
640 for (Map.Entry<String, String> entry : fsRoots.entrySet())
641 addRoot( entry.getKey(), entry.getValue(), true);
642
643 // create OPDS dir
644 addOPDSRoot();
645
646 // create search dir
647 addSearchRoot();
648
649 // create books by author root
650 addAuthorsRoot();
651 // create books by series root
652 addSeriesRoot();
653 // create books by title root
654 addTitleRoot();
655 }
656
657 public boolean autoAddRootForFile( File f ) {
658 File p = f.getParentFile();

Callers 1

onCreateMethod · 0.80

Calls 8

addRootMethod · 0.95
addOPDSRootMethod · 0.95
addSearchRootMethod · 0.95
addAuthorsRootMethod · 0.95
addSeriesRootMethod · 0.95
addTitleRootMethod · 0.95
entrySetMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected