colinta / StrangeCase

It's yet another static site generator. Have you seen jekyll? hyde? Yup. Like those.
http://colinta.com/projects/StrangeCase.html
Other
49 stars 7 forks source link

Use standard directory and file permissions #18

Closed wichert closed 12 years ago

wichert commented 12 years ago

scase always uses mode 0755 when creating files and directories. This has two downsides:

  1. it makes files executable, which does not make sense for the types of files scase generates/copies (html/css/js/etc.).
  2. it ignores a users umask

I would suggest to simply drop the os.chmod call in FileNode.generate and remove the permission in the os.mkdir calls in FolderNode.generate and RootFolderNode.generate.

colinta commented 12 years ago

done in 4d9c73a / v4.0.13