Forum

    • Register
    • Login
    • Search
    • Categories

    FileSystem.findFiles(var directory, String wildcard, bool recursive)

    General Questions
    3
    4
    128
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Lindon
      Lindon last edited by Lindon

      So I'm using this call...or trying to....

      sadly it takes a few seconds to return the array of file names....so really it would be better to have this

      FileSystem.findFiles(var directory, String wildcard, bool recursive, function(){

      })

      but meanwhile... how is every one dealing with the waiting game - a timer?

      HISE Development for hire.
      www.channelrobot.com

      1 Reply Last reply Reply Quote 1
      • Christoph Hart
        Christoph Hart last edited by

        No, actually that's a good request, since the scripting engine is not supposed to wait for multiple seconds (which is why all of those things require an asynchronous function call).

        I just wasn't aware that this operation might take more time, because I only tested it with small amounts of files, but I can imagine that it will take a bit if you have thousands of files (or if you have a slow USB drive or whatever)

        Lindon 1 Reply Last reply Reply Quote 3
        • Lindon
          Lindon @Christoph Hart last edited by

          @christoph-hart said in FileSystem.findFiles(var directory, String wildcard, bool recursive):

          No, actually that's a good request, since the scripting engine is not supposed to wait for multiple seconds (which is why all of those things require an asynchronous function call).

          I just wasn't aware that this operation might take more time, because I only tested it with small amounts of files, but I can imagine that it will take a bit if you have thousands of files (or if you have a slow USB drive or whatever)

          Yeah - Im testing on a "slow USB drive" to make sure I catch this sort of thing...

          HISE Development for hire.
          www.channelrobot.com

          1 Reply Last reply Reply Quote 0
          • d.healey
            d.healey last edited by

            My vote is for the callback, breaking change is okay with me 🙂

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            1 Reply Last reply Reply Quote 1
            • First post
              Last post

            22
            Online

            741
            Users

            5.4k
            Topics

            50.4k
            Posts