diff --git a/oml/item/handlers.py b/oml/item/handlers.py index cdb4959..95ba34d 100644 --- a/oml/item/handlers.py +++ b/oml/item/handlers.py @@ -173,7 +173,7 @@ class UploadHandler(tornado.web.RequestHandler): file = File.get(id) if not file: prefix_books = os.path.join(os.path.expanduser(prefs['libraryPath']), 'Books/') - prefix_imported = os.path.join(prefix_books, 'Imported/') + prefix_imported = os.path.join(prefix_books, '.import/') ox.makedirs(prefix_imported) import_name = os.path.join(prefix_imported, filename) n = 1 diff --git a/oml/item/models.py b/oml/item/models.py index 0318907..6517ad0 100644 --- a/oml/item/models.py +++ b/oml/item/models.py @@ -448,7 +448,7 @@ class Item(db.Model): logger.debug('INVALID CONTENT %s vs %s', self.id, content_id) return False if not f: - path = 'Downloads/%s.%s' % (self.id, self.info['extension']) + path = '.import/%s.%s' % (self.id, self.info['extension']) info = self.info.copy() for key in ('mediastate', 'coverRatio', 'previewRatio'): if key in info: diff --git a/oml/item/scan.py b/oml/item/scan.py index c27a97b..d7de090 100644 --- a/oml/item/scan.py +++ b/oml/item/scan.py @@ -112,7 +112,7 @@ def run_import(options=None): if not prefix[-1] == os.sep: prefix += os.sep prefix_books = os.path.join(os.path.expanduser(prefs['libraryPath']), 'Books' + os.sep) - prefix_imported = os.path.join(prefix_books, 'Imported' + os.sep) + prefix_imported = os.path.join(prefix_books, '.import' + os.sep) if prefix_books.startswith(prefix) or prefix.startswith(prefix_books): error = 'invalid path' elif not os.path.exists(prefix):