liip/LiipImagineBundle — pull request #189 by KingCrunch (2013-05-29 18:02:06+00:00)
Title: mkdir() doesn't take care about the umask

I use the default setting

cache_mkdir_mode: 0777

The problem now is, that if a umask is set, the permissions for the created folders aren't `0777`. This break the cache-cleanup. It should also take care, that every recursively created folder should have the same permissions.

Update: While I was looking for a solution I realized, that during storing the created files no permission mask is applied to `mkdir()` at all

https://github.com/liip/LiipImagineBundle/blob/master/Imagine/Cache/Resolver/AbstractFilesystemResolver.php#L75

This means, even if I set something different as `cache_mkdir_mode` it is never applied, is it? Is this intended?