[sharing is fun] make a folder


    Aug 19 2008 | 6:25 am
    Perhaps there have been previous complete crossplatform suggestions and examples, but my searches on maxobjects.com and this forum turned up only bits and pieces. Here is a very simple java mxj object to create a folder or make a directory or make a folder or create a directory (sorry, I'm just making this post search-relevant) on your hard drive. Just give it a path, and then look for that path on your harddrive, and voila, it is there, awaiting your files and other folders. There is at least one mac-specific example, using "/Volumes" notation. it's here: http://www.yowstar.com/share/makedir.zip

    • Aug 19 2008 | 10:07 am
    • Aug 19 2008 | 12:49 pm
      Hello,
      Thanks for sharing this great object!
      A nice add-on would be to also make it possible to delete or rename folders? But is it a lot of work to add this to the object? (I really have no idea)
      Kind regards, Bas
    • Sep 02 2008 | 10:57 am
      Quote: pnyboer wrote on Tue, 19 August 2008 08:25 ---------------------------------------------------- > Perhaps there have been previous complete crossplatform suggestions and examples, but my searches on maxobjects.com and this forum turned up only bits and pieces. > Here is a very simple java mxj object to create a folder or make a directory or make a folder or create a directory (sorry, I'm just making this post search-relevant) on your hard drive. > Just give it a path, and then look for that path on your harddrive, and voila, it is there, awaiting your files and other folders. > There is at least one mac-specific example, using "/Volumes" notation. > it's here: > http://www.yowstar.com/share/makedir.zip ----------------------------------------------------
      Hi Peter, thanks for sharing this. I was thinking about making the same thing but then I stumbled onto your object. Great time saver!
      I added an extra feature:
      instead of outlet(0, s);
      I did boolean succeeded = f.mkdirs(); outlet(0, succeeded ? 1 : 0);
      Now the left oulet returns whether making the dir succeeded.
      Cheers, Mattijs