Skip to content

Don't blank out SpecialFolders on Android if they don't already exist - #58064

Merged
directhex merged 1 commit into
dotnet:mainfrom
directhex:android-specialfolders
Aug 30, 2021
Merged

Don't blank out SpecialFolders on Android if they don't already exist#58064
directhex merged 1 commit into
dotnet:mainfrom
directhex:android-specialfolders

Conversation

@directhex

Copy link
Copy Markdown
Contributor

Fixes: #35490

Hopefully, anyway. I couldn't get local testing to run on an Android emulator at all

@ghost

Copy link
Copy Markdown

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@runfoapprunfoappBot mentioned this pull request Aug 25, 2021
Comment threadsrc/libraries/System.Private.CoreLib/src/System/Environment.cs Outdated
This should give the same output as legacy Xamarin. If it doesn't, I messed up
@directhex
directhexforce-pushed the android-specialfolders branch from b7a4d01 to ad4b9b2CompareAugust 27, 2021 13:47
@steveisok
steveisok self-requested a review August 27, 2021 15:45
@directhex
directhex merged commit 0ab41f6 into dotnet:mainAug 30, 2021
@directhex

Copy link
Copy Markdown
ContributorAuthor

/backport to release/6.0

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1182508214

{
private static Dictionary<SpecialFolder, string>? s_specialFolders;

private static string GetFolderPathCore(SpecialFolder folder, SpecialFolderOption option)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the code should handle SpecialFolderOption.Create

@ghostghost locked as resolved and limited conversation to collaborators Sep 29, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[mono] Implement Environment.GetFolderPath for Android

5 participants

@directhex@marek-safar@steveisok@stephentoub@danmoseley