-api-id | -api-type |
---|---|
T:Windows.Storage.StorageFolder |
winrt class |
Manages folders and their contents and provides information about them.
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.
Windows version | SDK version | Value added |
---|---|---|
1803 | 17134 | TryGetChangeTracker |
2004 | 19041 | GetFolderFromPathForUserAsync |
StorageFile, Folder enumeration sample (Windows 10), Content indexer sample, File access sample, File search sample
documentsLibrary, musicLibrary, picturesLibrary, videosLibrary