ebook-device: books now lists books on the storage card as well

This commit is contained in:
Kovid Goyal 2009-12-13 12:20:21 -07:00
parent 63a10e7753
commit afc66727fd

View File

@ -240,8 +240,10 @@ def main():
print "Books in main memory:" print "Books in main memory:"
for book in dev.books(): for book in dev.books():
print book print book
print "\nBooks on storage card:" print "\nBooks on storage carda:"
for book in dev.books(oncard=True): print book for book in dev.books(oncard='carda'): print book
print "\nBooks on storage cardb:"
for book in dev.books(oncard='cardb'): print book
elif command == "mkdir": elif command == "mkdir":
parser = OptionParser(usage="usage: %prog mkdir [options] path\nCreate a directory on the device\n\npath must begin with / or card:/") parser = OptionParser(usage="usage: %prog mkdir [options] path\nCreate a directory on the device\n\npath must begin with / or card:/")
if len(args) != 1: if len(args) != 1: