Modules/Squirrel/GetFileList

From Liberty Unleashed Wiki
Jump to: navigation, search
lu_GetFileList
Type Squirrel module
Version 1.0
Author Thijn
Platform Windows, Linux
Website LU Forum Thread
Download link Windows Binary ( Mirror )

Linux Binary ( Mirror )

Source Code ( Mirror )

Contents


lu_GetFileList is a third-party, community module which provides Squirrel functions to get list of the files of given extension.


Installation

Make sure you have the lu_GetFileList.dll or lu_GetFileList.so file in your Modules folder.

Example Usage

  1. function onScriptLoad ( ) {
  2.  
  3. LoadModule ( "lu_GetFileList" );
  4. local list = GetFileList ( "Logs", "log" );
  5.  
  6. for( local i = 0; i < list.len(); i++ )
  7. {
  8. print ( list[i] );
  9. }
  10.  
  11. return;
  12. }

Version History

  • 1.0 - Initial release.
Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox