fork download
  1. import android
  2. import os
  3. droid = android.Android()
  4. path="/sdcard/.vkontakte/cache/audio"
  5. dirList=os.listdir(path)
  6. for fname in dirList:
  7. print fname
  8. newname = "/sdcard/Music/"+fname+".mp3"
  9. oldname = path+"/"+fname
  10. if os.path.exists(newname):
  11. print 'exists'
  12. else:
  13. comm = "cp "+oldname+" "+newname
  14. os.system(comm)
  15. print "copied"
Runtime error #stdin #stdout #stderr 0s 23352KB
stdin
import android
import os
droid = android.Android()
path="/sdcard/.vkontakte/cache/audio"
dirList=os.listdir(path)
for fname in dirList:
   print fname
   newname = "/sdcard/Music/"+fname+".mp3"
   oldname = path+"/"+fname
   if os.path.exists(newname):
     print 'exists'
   else:
     comm = "cp "+oldname+" "+newname
     os.system(comm)
     print "copied"
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 1, in <module>
ImportError: No module named android