Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. import android
  2. import os
  3.  
  4. drd = android.Android()
  5. dPath = '/mnt/sdcard/download/'
  6. sList = os.listdir(dPath)
  7. lSongsList = list()
  8. lSongsNames = list()
  9.  
  10. def fSongList():
  11. lSongs = list()
  12. for song in sList:
  13. if song[-3:] == 'mp3':
  14. lSongs.append(song)
  15. return lSongs
  16.  
  17. def fSongListF():
  18. lReturn = list()
  19. for indx in lSongsBase:
  20. lReturn.append(indx[:-4])
  21. return lReturn
  22.  
  23.  
  24.  
  25. lSongsBase = fSongList()
  26. lSongsNames = fSongListF()
  27. for song in fSongListF():
  28. print song
  29. print fSongListF()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement