ametaireau/pelican — pull request #393 by tbunnyman (2012-07-04 19:37:16+00:00)
Title: Change behavior of DELETE_OUTPUT_DIRECTORY to purge contents of the directory…

Change behavior of DELETE_OUTPUT_DIRECTORY to purge contents of the directory, not the directory itself.

Added Debug level logging for each deletion
Added error level logging when a delete has an exception
Built a test case for clean_output_directory in tests.utils.py
Updated `settings` in documentation to reflect new behavior
Removed the tip from the bottom of getting started since this setting should no longer break web servers pointing to the output directory.

* * * * * * * * * *

This should fix a few small oddities, especially when running a test web server on your output directory for development. I also added lots more logging to the function because we are making on disk changes.