incrediblezayed / file_saver

A simple flutter plugin for saving files in all platforms
https://pub.dev/packages/file_saver
BSD 3-Clause "New" or "Revised" License
75 stars 92 forks source link

PathNotFoundException in windows platform #120

Open sharpsaravanan opened 3 weeks ago

sharpsaravanan commented 3 weeks ago

Thank you for developing this fantastic plugin!

unable to save file in windows platform when filepath parameter is given. (due to path separator is hard coded in -- ( FileSaver.saveFileOnly (package:file_saver/file_saver.dart:113:15) return (await file.copy('$applicationDirectory/$name$ext')).path;)

FileSaver.instance.saveFile function return file as 'C:\Users\username\Downloads/image1.png' instead of this 'C:\Users\username\Downloads\image1.png'