Windows.Storage.StorageFolder
July 15, 2020 ยท View on GitHub
-description
Manages folders and their contents and provides information about them.
-remarks
Typically you get StorageFolder objects as the return value of asynchronous method calls. For example, the static method GetFolderFromPathAsync returns a StorageFolder that represents the specified folder.
Note that when you call a file picker to let the user pick a folder, the file picker returns the folder as a StorageFolder.
There is not currently a "MoveAsync" or similar method. One simple implementation of moving a folder might be to get the desired folder, copy it to the desired location, and then delete the original folder.
Version history
| Windows version | SDK version | Value added |
|---|---|---|
| 1803 | 17134 | TryGetChangeTracker |
| 2004 | 19041 | GetFolderFromPathForUserAsync |
-examples
-see-also
StorageFile, Folder enumeration sample (Windows 10), Content indexer sample, File access sample, File search sample
-capabilities
documentsLibrary, musicLibrary, picturesLibrary, videosLibrary