Feature: Create thumb repository directories The default test setup starts allmytoes with an existing cache directory. Scenario: AllMyToes terminates with error on missing cache directory Given a JPEG image as input And the default cache directory does not exist When allmytoes is started without further arguments Then nothing is returned on stdout And allmytoes terminates with exit code 10 Scenario: AllMyToes creates missing thumbnail directories with proper permissions Note: The step “no thumbs exist” implies that the thumbnail directory does not exist in this test-setup. Given a JPEG image as input And no thumbs exist When allmytoes is started without further arguments Then the path to the large thumb is returned And the cache directory and all sub-directories have permissions 700 And all the files within the thumb-directories have permissions 600