Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import android
- import os
- drd = android.Android()
- dPath = '/mnt/sdcard/download/'
- sList = os.listdir(dPath)
- lSongsList = list()
- lSongsNames = list()
- def fSongList():
- lSongs = list()
- for song in sList:
- if song[-3:] == 'mp3':
- lSongs.append(song)
- return lSongs
- def fSongListF():
- lReturn = list()
- for indx in lSongsBase:
- lReturn.append(indx[:-4])
- return lReturn
- lSongsBase = fSongList()
- lSongsNames = fSongListF()
- for song in fSongListF():
- print song
- print fSongListF()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement