티스토리 뷰
반응형
-
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
반응형
'UWP & Windows App > Beginner' 카테고리의 다른 글
Microsoft Edge(Chromium) WebView2 Control (0) | 2020.08.17 |
---|---|
Face detecting in UWP app (0) | 2020.08.06 |
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 |
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- PRISM
- ef core
- WPF
- #Windows Template Studio
- #uwp
- Bot Framework
- #prism
- Behavior
- visual studio 2019
- .net 5.0
- #MVVM
- XAML
- uno-platform
- Windows 10
- C#
- Build 2016
- UWP
- .net
- ComboBox
- Microsoft
- kiosk
- Always Encrypted
- LINQ
- uno platform
- MVVM
- windows 11
- Cross-platform
- Visual Studio 2022
- dotNETconf
- IOT
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
글 보관함