You can do this cleaner with chef's built in [directory resource](http://docs.opscode.com/resource_directory.html).