Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I use the amazon downloader to buy mp3s with my android device. My problem now is that I cannot change the download folder but want the files to be moved to my sdcard. I already found a cron tool to run scripts from time to time. All I need now is a shell script to move all folders (including subfolders and files) from

internalmemory\amazonmp3

to

sdcard\Music

to be honest my knowledge is just good enough to do a "mv" but not good enough to go through all subfolders. I also am not sure about the directory structure of android devices. (pathes to sdcard and so on)

share|improve this question
1  
@MatthewRead Because he's using cron to do it periodically on a preset timetable. –  onik Feb 28 '12 at 6:07
    
@onik Lol, I somehow totally missed that sentence, thanks. –  Matthew Read Feb 28 '12 at 18:03
add comment

2 Answers 2

up vote 4 down vote accepted

If you use mv on a directory containing files and subdirectories, it will move all of them. But in this case you may not want to move the amazonmp3 directory itself, so the command would be mv internalmemory/amazonmp3/* /sdcard/music/, assuming the internalmemory directory is correct.

The actual names for the internal memory and sd-card depend on the device, for example on my old Galaxy S they were /sdcard and /sdcard/external_sd/.

share|improve this answer
add comment

Just an addition. "mv" does NOT work on Android because the internal memory and sdcard have different file systems. You have to copy the files and then delete the old ones.

(oniks answer is still the best. This information is just for those who ended here using google)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.