[sharing is fun] make a folder

Aug 19, 2008 at 6:25am

[sharing is fun] make a folder

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

#39338
Aug 19, 2008 at 10:07am

#138339
Aug 19, 2008 at 12:49pm

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

#138340
Sep 2, 2008 at 10:57am

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

#138341

You must be logged in to reply to this topic.