Fixed the file implementations, they weren't using a mode, and the base path was always set to /tmp/.

We now get the systems idea of where the users download folder is and use that as the base path when receiving a file.

PiperOrigin-RevId: 406406731
This commit is contained in:
jfcarroll
2021-10-29 11:46:22 -07:00
committed by Copybara-Service
parent acf516189b
commit 44fad7d8fb
7 changed files with 57 additions and 17 deletions
@@ -105,7 +105,7 @@ ExceptionOr<ByteArray> BluetoothSocket::BluetoothInputStream::Read(
Buffer buffer = Buffer(size);
winrt_stream_.ReadAsync(buffer, size, InputStreamOptions::None).get();
winrt_stream_.ReadAsync(buffer, size, InputStreamOptions::Partial).get();
DataReader dataReader = DataReader::FromBuffer(buffer);