Team Spartan Cookies & Milk Forums
dependencies for entire directories ? - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: dependencies for entire directories ? (/thread-3721.html)



dependencies for entire directories ? - The17thDoctor - 05-12-2021

Would it be possible to apply dependencies to an entire directory ? Or is that too costly in networking to download all files from one directory when there could potentially be dozens ?


RE: dependencies for entire directories ? - 57e11a - 06-12-2021

Why not depend on an index.txt that just includedir's the directory?


RE: dependencies for entire directories ? - The17thDoctor - 06-12-2021

(06-12-2021, 07:10 AM)тѕсм.Quiru Wrote: Why not depend on an index.txt that just includedir's the directory?

Because you can't do that afaik
EDIT : You can do that, however it does not have the effect wanted afaik, my goal is to load from shared an entire directory with undetermined amounts of files in it. So I can't do single dependencies nor include them given include is taking files off local files.

EDIT 2 : I dont know how that even works but it does. I'm pretty sure it was not meant to be this way though.


RE: dependencies for entire directories ? - Person8880 - 07-12-2021

It is intentional for --@includedir to work with dependencies. They're supposed to behave the same as if the file were included normally for the most part.