DECA-21: Move directory and file checks to Sever initialization

Metadata

Source
DECA-21
Type
Bug
Priority
Minor
Status
Closed
Resolution
Fixed
Assignee
N/A
Reporter
Jonathan Hung
Created
2010-03-23T10:56:04.000-0400
Updated
2012-01-10T09:53:19.665-0500
Versions
  1. 0.3
Fixed Versions
  1. 0.4
Component
  1. Server

Description

If some directories do not have proper permission to write files, the scripts we run via command line may terminate abnormally.
Currently, directory checks are being done inside take_picture - this should move to a different part of the workflow.

One logical location to place directory checks is when a new book is created. When a book is created, we generate all the necessary directories and set the proper permissions.

Comments

  • Colin Clark commented 2010-07-14T00:51:06.037-0400

    This was addressed during server refactoring for 0.4. We expect to be able to create all relevant directories such as the location of captured images and the generated PDF. This is done on server startup.