0

I want to copy an audio file to music folder in the storage. I have the path where the audio is, like '/data/user/0/app/audioFile' and I am passing to the function as 'audioPath'. I need help to finish this function, what can I do?

void _downloadAudio(audioPath) async {
  var file = File(audioPath);
  //get the music folder
  await file.copy(music folder path);
}

0 Answers0