How can I import all files in a folder?

前端 未结 3 1998
余生分开走
余生分开走 2021-02-07 12:44

Say I got a bunch of dart scripts in a folder,

Is there anything I can do like import \'foo/*.dart\'?

P.S. What if I got an array of filenames and

3条回答
  •  -上瘾入骨i
    2021-02-07 13:25

    This would be highly unsecure, this is why it is not allowed by design. An attacker would be able to run any malicious code just adding a file with the right name to your folder.

提交回复
热议问题