I'd like to upload an mp3 file from hotfolder without knowing the name of the file. (such as *.mp3)
here's what I tried (to upload specific file / known file name)
    import soundcloud
# create client object with app and user credentials
    client = soundcloud.Client(client_id='***',
    client_secret='***',
    username='***',
    password='***')
# print authenticated user's username
    print client.get('/me').username
    mp3_file=('test.mp3')
# upload audio file
    track = client.post('/tracks', track={
    'title': 'Test Sound',
    'asset_data': open(mp3_file, 'rb')
    })
# print track link
    print track.permalink_url
how can I make the script upload any mp3 file in that folder ? (script and files are located in the same folder)
 
     
    