Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 1.91 KB

storagefolder.md

File metadata and controls

39 lines (24 loc) · 1.91 KB
-api-id -api-type
T:Windows.Storage.StorageFolder
winrt class

Windows.Storage.StorageFolder

-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