ext_storage
ext_storage copied to clipboard
No such file or directory
Hello I'm using
ExtStorage.getExternalStoragePublicDirectory(ExtStorage.DIRECTORY_DOCUMENTS)
String fileDrc=await ExtStorage.getExternalStoragePublicDirectory(ExtStorage.DIRECTORY_DOCUMENTS); final path= Directory( fileDrc+ "/Reports");
if (!(await path.exists()))
path.create();
but I get error
FileSystemException: Creation failed, path = '/storage/emulated/0/Documents/Reports' (OS Error: No such file or directory, errno = 2), stack trace: #0