Skip to content

Manually get folder name in case of network share folder or drive #9056

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

Bayrem00
Copy link
Contributor

@Bayrem00 Bayrem00 commented May 1, 2022

Resolved / Related Issues

Details of Changes
Starting from .Net 5 as mentioned here, GetFileName does not get the Share folder name, but gets an empty string instead, which is how the bug arose.
I added specific handling for UNC paths if it stops at the share level (ie : \127.0.0.1\share), and for Drive folders.

Validation
How did you test these changes?

  • [ X] Built and ran the app
  • Tested the changes for accessibility

@d2dyno1 d2dyno1 added ready to merge Pull requests that are approved and ready to merge and removed needs - code review labels Jun 6, 2022
@yaira2 yaira2 merged commit 7320fea into files-community:main Jun 8, 2022
@yaira2 yaira2 mentioned this pull request Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Network drives in bundles
3 participants