Script request Move content of downloaded folder one folder up
Script request Move content of downloaded folder one folder up
Hi, I am not able to write a script for the Mac and it does not look good for the feature request to unpack all files without folder generation or move all files one up and delete the downloadfolder. It would be great if someone could please throw those lines together. Thank you in advance.
Re: Script request Move content of downloaded folder one folder up
Here's a windows script, I believe there's a Linux/Mac bash script to do the same thing around here somewhere, I just couldn't find it.
Re: Script request Move content of downloaded folder one folder up
Did not find it either. I did a search before posting I did!
I went through all threadnames but nothing matches the req.

Last edited by roads on February 22nd, 2010, 11:39 am, edited 1 time in total.
-
- Release Testers
- Posts: 180
- Joined: February 20th, 2008, 3:16 pm
Re: Script request Move content of downloaded folder one folder up
probably something like
I would leave the rm line out until you're sure the mv works
not sure if rm on a mac will remove the folder as long as it's empty. if not, you might need to use rmdir
Code: Select all
mv $1/* ..
rm $1
not sure if rm on a mac will remove the folder as long as it's empty. if not, you might need to use rmdir
Last edited by doubledrat on February 22nd, 2010, 12:27 pm, edited 1 time in total.