Popular Post Iaan Posted January 7, 2017 Popular Post Share Posted January 7, 2017 Hello everyone Today I was thinking of a pro idea in the "meta.xml" file. <file src = "images/*" /> The "*" represents all archives. (Loop) When I do this, everything in the resource, in the folder "images" will be imported automatically, avoiding to write each file. 12 Link to comment
xeon17 Posted January 7, 2017 Share Posted January 7, 2017 Good idea, this would save a lot of time. If it can be done. Link to comment
myonlake Posted January 7, 2017 Share Posted January 7, 2017 (edited) Same could be done with any other files (scripts, maps), to be honest, not just file...files. At the moment we can do this but it will require a separate watch script to implement the functionality. Edited January 7, 2017 by myonlake Link to comment
mommytellme Posted March 4, 2017 Share Posted March 4, 2017 (edited) Good idea, but I would do asterisk substitute for any characters also. For example: *.txd - all files with txt extension file_*.txd - file_1, file_2, file_3, etc Edited March 4, 2017 by Dante383 2 Link to comment
Iaan Posted March 4, 2017 Author Share Posted March 4, 2017 7 minutes ago, Dante383 said: Good idea, but I would do asterisk substitute for any characters also. For example: *.txd - all files with txt extension file_*.txd - file_1, file_2, file_3, etc Of course, this is another nice example. Link to comment
MIKI785 Posted March 5, 2017 Share Posted March 5, 2017 It would be useful. But in the meantime you could use this simple shell script (if running linux): for name in *.png #will go through all pngs, use * for all files. do echo "<file src=\"/images/$name\" type=\"client\" />" #$name will get replaced with file names done Just put it in the same directory as the files and then run simply like: ./test.sh > list.txt Then just copy it from list.txt to meta.xml. Hopefully someone can find it useful if they're not familiar with shell scripting. 1 Link to comment
FernandoMTA Posted March 26, 2017 Share Posted March 26, 2017 Very good idea! Hopefully a dev sees this. Link to comment
F4sT Posted March 30, 2017 Share Posted March 30, 2017 It need to be . That saves a lot of time. But not "*" simple, if I just want some files like txd. "*.txd" or dff "*.dff". Good idea anyway. Link to comment
SheriFF Posted April 19, 2017 Share Posted April 19, 2017 Sick idea tho. I agree with this suggestion Link to comment
ozulus Posted April 21, 2017 Share Posted April 21, 2017 I don't think it's really required since it can be done with any other programming languages. Just google it, there are already a few of examples. Link to comment
Iaan Posted April 27, 2017 Author Share Posted April 27, 2017 On 21/04/2017 at 07:29, ozulus said: I don't think it's really required since it can be done with any other programming languages. Just google it, there are already a few of examples. I know it, but, why not implement this ? It's something simple and very productive. I use a script similiar: On 04/03/2017 at 23:10, MIKI785 said: It would be useful. But in the meantime you could use this simple shell script (if running linux): for name in *.png #will go through all pngs, use * for all files. do echo "<file src=\"/images/$name\" type=\"client\" />" #$name will get replaced with file names done Just put it in the same directory as the files and then run simply like: ./test.sh > list.txt Then just copy it from list.txt to meta.xml. Hopefully someone can find it useful if they're not familiar with shell scripting. Link to comment
Fist Posted May 6, 2017 Share Posted May 6, 2017 It actually is weird, 'cause in ACL.XML you can do this, but weirdly not in resource's .xml Link to comment
DarkChemical Posted May 6, 2017 Share Posted May 6, 2017 On 4/21/2017 at 05:29, ozulus said: I don't think it's really required since it can be done with any other programming languages. Just google it, there are already a few of examples. What if I want to make a script that automatically detects files I place in a folder? I can think of allot of ways this will come in handy. Link to comment
Recommended Posts