1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

List Variable to All Files in Specified Directory

Discussion in 'Skript' started by JustADev, May 18, 2018.

Thread Status:
Not open for further replies.
  1. JustADev

    JustADev Well-Known Member

    Joined:
    Apr 8, 2017
    Messages:
    380
    Likes Received:
    9
    Question: I use Skript-YAML, and have looked at the syntax. But is there a way to set a list var to all files in a specified directory using Skript-YAML.

    My current system is:
    [​IMG]

    And inside Rotations I have:
    [​IMG]

    And I want to set like {_List::*} to all of the files within the "Rotations" folder
    So {_List::*} would contain BlockVille and Tower
     
  2. Mr_Simba

    Mr_Simba King of the Pridelands
    Moderator Supporter

    Joined:
    Dec 9, 2016
    Messages:
    257
    Likes Received:
    55
    Medals:
    I don't think Skript-YAML has it but skUtilities has this syntax:

    Code (Text):
    1. files in dir[ectory] [including sub dir[ectorie]s] %string%
    2. dir[ectory] [including sub dir[ectorie]s] %string%'s files
     
  3. Snow-Pyon

    Moderator Resource Staff

    Joined:
    Jan 25, 2017
    Messages:
    1,236
    Likes Received:
    176
    Medals:
Thread Status:
Not open for further replies.

Share This Page

Loading...