Python mkdir giving me wrong permissions

前端 未结 4 1282
感情败类
感情败类 2021-01-11 17:14

I\'m trying to create a folder and create a file within it.

Whenever i create that folder (via Python), it creates a folder that gives me no permissions at all and r

4条回答
  •  孤街浪徒
    2021-01-11 18:21

    You've probably got a funky umask. Try os.umask(0002) before making your directory.

提交回复
热议问题