How to mock os.listdir to pretend files and directories in Python?
问题 I have a proprietary repository format and I'm trying to develop a Python module to process these repositories. Repo format goes as: /home/X/ | + alpha/ | + beta/ | + project.conf Here, X is a project. alpha and beta are folders inside this project and they represent groups in this project. A group is a container in this repo and what it represents is really not relevant for this question. The repo X also has files in its root level; project.conf is an example of such a file. I have a class