I'm not sure about the folders, but I am aware that some files will always have the permissions 664, which are the ones written using wxTextFile, which doens't support permissions. However, I haven't seen the behavior with folders. Could you let me know which this happens to?