Create an array with scandir() of directories as keys and their contents as values

前端 未结 0 2010
[愿得一人]
[愿得一人] 2021-01-30 17:45

I want to make an array like this, maybe using scandir().:

scanned = {Dir1:[file1.txt,
       file2.bin
      ]
Dir2: [file554.txt,
       file6.zip
      ]
}


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