티스토리 뷰
Windows App(Universal App)/Beginner
Create a UWP app with File System Access
Connor Park 2020. 7. 24. 16:39-
UWP이 로컬 파일 시스템을 직접 접근해서 파일이나 폴더의 정보를 가지고 오는 방법에 대한 설명입니다.
-
This is how UWP directly accesses the local file system and fetches information from files or folders.
-
BroadFileSystemAccess
- All Files that the user has access to
- Settings } Privacy | File system | Allow access UWP app
- Version 1803 - default is On
- Version 1809 - default is Off
- This capability is not supported on Xbox
-
Key Point
- Package.appxmanifest } Mouse Right Click } Open With… } XML (Text) Editor
- Add rescap namespace
- xmlns:rescap=“http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities”
- IgnorableNamespaces=“uap mp rescap”
- Add rescap:Capability to th Capabilities section
- {rescap:Capability Name="broadFileSystemAccess" /}
- Code
- var folder = await StorageFolder.GetFolderFromPathAsync(path);
- try-catch(UnauthorizedAccessException)
-
Completed sample app
- Show all drives
- Text files can be created in the selected folder
- Selected file can be Open(exe file cannot be Open)
- https://github.com/kaki104/UWP_17134
'Windows App(Universal App) > Beginner' 카테고리의 다른 글
Microsoft Edge(Chromium) WebView2 Control (0) | 2020.08.17 |
---|---|
Face detecting in UWP app (0) | 2020.08.06 |
Create a UWP app with File System Access (0) | 2020.07.24 |
Install and update UWP apps from the Web (0) | 2020.04.25 |
LINQ - Join Operations - part5/5 (0) | 2020.04.15 |
LINQ part 4 (0) | 2020.02.11 |
- TAG
- BroadFileSystemAccess, UWP, XAML
댓글
공지사항
최근에 올라온 글
- Total
- 577,480
- Today
- 127
- Yesterday
- 97
링크
- FusionWiz의 스토리
- Jeremy Likness
- Jerry Nixon
- Tim Heuer
- Diederik Krols
- Pete D
- Lunar Frog Software
- Iris Classon
- Richard's Blog
- ScottGu's blog
- Scott Hanselman's blog
- Fear and Loating blog
- Rags(누더기)
- 나나의 블로그
- Ryu School
- kodatt
- Pragmatic Programmer
- Be MODERN with Windows
- 닷넷(.NET) 프로그래머 모임
- XAML or HTML 권영철 MVP
- 골드러쉬와 함께하는 Hello C#
TAG
- uno platform
- entity framework core
- Microsoft
- Build 2016
- dotNETconf
- IOT
- uno-platform
- WebView
- XAML
- Bot Framework
- iot core
- Windows 10
- PRISM
- #Windows Template Studio
- Android
- #uwp
- .net 5.0
- Cross-platform
- ef core
- wasm
- WPF
- #MVVM
- C#
- MVVM
- xamarin forms
- #prism
- UWP
- visual studio 2019
- LINQ
- #XAML