Querying size of folder contents before polybuffer~ load


    Apr 27 2017 | 11:20 am
    I'm working on a patch that loads a folder full of files into polybuffer~.
    It all works well, but if you happen to select a folder either larger than available RAM or the 32bit RAM limit then this causes Max to crash.
    I want to be able to test the folder contents size (just audio ideally) before commiting to the polybuffer~ load.
    Any ideas?

    • Apr 27 2017 | 11:39 am
      Mac OSX?
      du in a shell (du -ms /my/path) maybe.
    • Apr 27 2017 | 11:48 am
      It's going to be part of a M4L device, so really needs to be Windows too - sorry, should have specified.
    • Apr 27 2017 | 11:49 am
      Interesting though....