file/folder distinction and iteration --- oh no, not again!


    Aug 28 2006 | 12:08 pm
    Hi all, is there a pure-Max way to check if a path name refers to a file or a
    folder?
    I know I could do this easily in javascript, I've read through the folderiter.js
    example, but it seems kind of slow to me, pausing for a few seconds before
    outputting the folder contents.
    Cheers...
    ...Diemo
    --
    Diemo Schwarz, PhD -- http://www.ircam.fr/anasyn/schwarz
    Real-Time Applications Team -- http://www.ircam.fr/equipes/temps-reel
    IRCAM - Centre Pompidou -- 1, place Igor-Stravinsky, 75004 Paris, France
    Phone +33-1-4478-4879 -- Fax +33-1-4478-1540

    • Aug 28 2006 | 1:45 pm
      I don't think there's a way to identify file / folder in Max, but if you
      think js is too slow, you may try Java :
      File f = new File (our_path)
      if ( f.isDirectory()) oulet(0, bang); ...
      cheers
      f.e
      f.e chanfrault | aka | personal computer music
      > >>>>>> http://www.personal-computer-music.com
      > >>>>>> |sublime music for a desperate people|
      Diemo Schwarz wrote:
      >
      > Hi all, is there a pure-Max way to check if a path name refers to a
      > file or a folder?
      >
      > I know I could do this easily in javascript, I've read through the
      > folderiter.js example, but it seems kind of slow to me, pausing for a
      > few seconds before outputting the folder contents.
      >
      > Cheers...
      > ...Diemo
      >
      >
    • Aug 28 2006 | 6:50 pm
    • Aug 29 2006 | 4:47 pm
      I use this a lot. Works fine on Mac, didn't test in windows.
      Hope that's what you mean..
      Mattijs