[shell] and mkdir
I've done a bit of research on this but was wondering if someone with a bit more terminal knowledge could help me out.
I know mkdir is the command I need to make a new directory, however I'm not sure how I specify where it is created. For example I'd like to make:
"This Folder"
in
"Macintosh HD/users/me/that folder"
I've tried using jcom.folder too but what I'm looking to do is create AND delete a directory using Max for temporary storage of downloaded resources. If there is a technique that's Windows friendly too, that'd be peachy.
Thanks, I appreciate any advice!
mkdir /Users/me/Desktop/that folder/This Folder
hth ole
If you need a portable solution, then you should use Java instead of shell. I did a small class that, a.o., deletes files and empty folders; check https://cycling74.com/tools/mxj-filesys-v0-2-3/
The Java source is included, adding a mkdir feature shouldn't be very difficult. I may even do it myself one day...
p
Thank you both for the advice, I'll have a look later on!
@o s: That works but turns out I had to use \ in a message box to stop Max automatically putting double quotes around it. That's what had been giving me grief!
@Patrick Delges: I've got your Java solution downloaded for potential future reference i.e. when I actually decide to get into Java! For now I think I should be able to use [DOSHack] as a Windows alternative to [shell]?
Thanks again for your tips!
There's an external in the Jasch library that does this as well, it's OSX only but it might be worth a look.
Yes, Jasch has createfolder for OS X, and Bill Orcutt has mkdir for Windows.
Thanks Luke and Dan for the tips, I'll definitely look into them. Right now [shell] is working just fine as I can name the directories based on a username (whoami-->shell-->sprintf mkdir etc.) and rmdir -r means a user can also clear temporarily downloaded files (what a savage command!)
Thanks to Dan also for the slick standalones presentation notes. I knew most of the tips but the .json viewer really speeds things up!
I just added a mkdir message to mxj filesys.
Untested under Windows, but I suppose it should work too...
Download from https://cycling74.com/tools/mxj-filesys-v0-2-3/
p
tested under win7, everything works
only gotcha > doesn't delete to recycle bin but straight to the great void.
thanks Patrick
Thanks for testing Yair,
to move to the recycle bin, I suppose you could just use mv myfile /aPathTo/theRecycleBin (sorry, I don't know the path the Win's bin).
p