Skip to content

OpenStreamForWriteAsync(IStorageFolder, String, CreationCollisionOption) throws Exception: System.IO.FileNotFoundException #1077

Closed

Description

@zipswich

Current behavior

Code
await ApplicationData.Current.LocalFolder.OpenStreamForWriteAsync("foo.txt", CreationCollisionOption.ReplaceExisting)
throws:

Exception: System.IO.FileNotFoundException: Could not find file ".../Library/Developer/CoreSimulator/Devices/E86F6ABD-3120-41F6-A850-7527F82D11E2/data/Containers/Data/Application/55ACE83E-F2B2-4F7F-9001-ACA4E03801B2/Library/Data/foo.txt"

Expected behavior

Creates file foo.txt

Creates file foo.txt

How to reproduce it (as minimally and precisely as possible)

await ApplicationData.Current.LocalFolder.OpenStreamForWriteAsync("foo.txt", CreationCollisionOption.ReplaceExisting)

https://github.com/zipswich/UnoDebug

Environment

Nuget Package:
Uno.UI
Package Version(s):
1.45.0-dev.1769
Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • Windows
  • Build tasks

Visual Studio

  • 2017 (version: )
  • 2019 (version: )
  • for Mac (version: )

Relevant plugins

  • Resharper (version: )

Anything else we need to know?

Activity

  1. added
    platform/ios 🍎
    kind/bug
    on Jun 19, 2019
  2. added
    project/core-tools 🛠️
    and removed on Sep 21, 2020
  3. added
    difficulty/tbd
    on Feb 15, 2021
  4. added this to the 3.7 milestone on Mar 20, 2021
  5. modified the milestones: 3.7, 3.8 on Apr 21, 2021
  6. modified the milestones: 3.8, 3.9 on May 12, 2021
  7. added
    difficulty/starter 🚀
    and removed
    difficulty/tbd
    on Jun 2, 2021
  8. MartinZikmund commented on Jul 26, 2021

    @MartinZikmund
    Member

    This is resolved now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

difficulty/starter 🚀kind/bugplatform/ios 🍎project/core-tools 🛠️

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions