Is it possible to mock os.scandir and its attributes?

后端 未结 0 1971
长情又很酷
长情又很酷 2021-01-21 23:05
for entry in os.scandir(document_dir)
    if os.path.isdir(entry):
    # some code goes here
    else:
        # else the file needs to be in a folder
        file_path          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题