file.Find
Example
Prints the first file and the first directory in the data
folder.
Output: File: helloworld.txt
Folder: ctp
Example
A poor-mans whereis file
that can directly look inside a specific addon or all of them, recursively searches engine.GetAddons+addon titles for specific files inside them
Output: ] find_content *
- lists all content in all addons, wildcards supported :)
] find_content *.lua
2 Match/es found in addon "Extended Spawnmenu" mounted at content/4000/104603291/104603291.gma
- lua/autorun/rb655_extended_spawnmenu.lua
- lua/autorun/rb655_legacy_addon_props.lua
9 Match/es found in addon "Seamless Portals" mounted at content/4000/2773737445/gmpublisher.gma
- lua/autorun/sh_detours.lua
- lua/autorun/sh_portal_movement.lua
- lua/autorun/client/cl_render_core.lua
- lua/autorun/server/sv_portals_pvs.lua
- lua/autorun/server/sv_prop_teleport.lua
- lua/entities/seamless_portal.lua
- lua/weapons/portal_gun.lua
- lua/weapons/gmod_tool/stools/portal_creator_tool.lua
- lua/weapons/gmod_tool/stools/portal_resizer_tool.lua
7 Match/es found in addon "Track Assembly Tool" mounted at content/4000/287012681/TrackAssemblyTool.gma
- lua/autorun/trackassembly_init.lua
- lua/autorun/z_autorun_[shinji85_s_rails].lua
- lua/entities/gmod_wire_expression2/core/custom/cl_trackasmlib_wire.lua
- lua/entities/gmod_wire_expression2/core/custom/trackasmlib_wire.lua
- lua/trackassembly/trackasmlib.lua
- lua/vgui/dasminsliderbutton.lua
- lua/weapons/gmod_tool/stools/trackassembly.lua
1 Match/es found in addon "Collision Resizer (ENHANCED)" mounted at cache/workshop/217376234.gma
- lua/weapons/gmod_tool/stools/advresizer.lua
4 Match/es found in addon "Advanced Material | REBORN" mounted at content/4000/3118788923/gmpublisher.gma
- lua/autorun/sh_mateditor_loader.lua
- lua/mateditor/sh_advmat_footsteps.lua
- lua/mateditor/sh_mateditor.lua
- lua/weapons/gmod_tool/stools/advmat.lua
] find_content m_anm.mdl
1 Match/es found in addon "[wOS] Animation Extension - Base (Full Version)" mounted at content/4000/757604550/wiltos_animation_base.gma
- models/m_anm.mdl