Description
When we create GridFS object empty collection fs.chunks is generated. May be it isn't right to do this in this step?
import pymongo
|
from gridfs import GridFS
|
|
conn = pymongo.Connection()
|
conn.drop_database("gridfs-test")
|
|
print("Collections: " + str(conn["gridfs-test"].collection_names()))
|
# Collections: []
|
|
g = GridFS(conn["gridfs-test"], "fs")
|
|
print("Collections: " + str(conn["gridfs-test"].collection_names()))
|
# Collections: [u'system.indexes', u'fs.chunks']
|