Directory require loading
Posted: Tue Nov 12, 2019 1:21 pm
Hi, I have ask information about multiple files loading contents inside folder without have the relative path of all single files,
this is post for more information about the discussion:
viewtopic.php?p=465086#p465086
I have see that many mods have the same problem, it happens often that mods have folders with many scripts that all must be loaded (I see that Factorio in base scripts have this situation too).
So I will ask if is possible make a sort of require("all file in folder" or/and "all file in folders/from path") or a sort of command for get list of files in a folder or under a path (not a file content reader).
Thank you for your attention.
this is post for more information about the discussion:
viewtopic.php?p=465086#p465086
I have see that many mods have the same problem, it happens often that mods have folders with many scripts that all must be loaded (I see that Factorio in base scripts have this situation too).
So I will ask if is possible make a sort of require("all file in folder" or/and "all file in folders/from path") or a sort of command for get list of files in a folder or under a path (not a file content reader).
Thank you for your attention.