[sharing is fun] make a folder

Peter Nyboer's icon

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

jln's icon
BasS's icon

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

Mattijs's icon

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