// Creates a new file in the folder or file group.
// When this method completes, it returns the new file as a StorageFile.
public IAsyncOperation<StorageFile> CreateFileAsync(string desiredName);
// Creates a new file in the current folder, and specifies what to do if a file
// with the same name already exists in the current folder.
// When this method completes, it returns the new file as a StorageFile.
public IAsyncOperation<StorageFile> CreateFileAsync(string desiredName,
CreationCollisionOption options);
// Creates a new subfolder inside the current folder.
// When this method completes, it returns the new subfolder as a StorageFolder.
public IAsyncOperation<StorageFolder> CreateFolderAsync(string desiredName);
// Creates a new sub-folder inside the current folder, and specifies what to do
// if a folder with the same name already exists in the current folder.
// When this method completes, it returns the new subfolder as a StorageFolder.
public IAsyncOperation<StorageFolder> CreateFolderAsync(string desiredName,
CreationCollisionOption options);
// Gets a single file from the current folder using the specified file name.
// When this method completes successfully, it returns a StorageFile that
// represents the file.
public IAsyncOperation<StorageFile> GetFileAsync(string name);
// Gets a single sub-folder from the current folder using the specified folder name.
// When this method completes successfully, it returns a StorageFolder that
// represents the sub-folder.
public IAsyncOperation<StorageFolder> GetFolderAsync(string name);
// Gets a single file or sub-folder from the current folder using the name
// of the item. When this method completes successfully, it returns the file or folder.
public IAsyncOperation<IStorageItem> GetItemAsync(string name);
// Gets the top-level files in the current folder.
// When this method completes successfully, it returns a list of the files
// in the folder. Each file in the list is represented by a StorageFile object.
public IAsyncOperation<IReadOnlyList<StorageFile>> GetFilesAsync();
// Gets a list of the top-level sub-folders of the current folder.
// When this method completes successfully, it returns a list of the files.
// Each folder in the list is represented by a StorageFolder.
public IAsyncOperation<IReadOnlyList<StorageFolder>> GetFoldersAsync();
// Gets a list of top-level files and sub-folders inside the current folder.
// When this method completes successfully, it returns a list of the files
// and folders inside the current folder. The items in the
// list are represented by objects of type IStorageItem.
public IAsyncOperation<IReadOnlyList<IStorageItem>> GetItemsAsync();
// Renames the current folder.
// No object or value is returned by this method when it completes.
public IAsyncAction RenameAsync(string desiredName);
// Renames the current folder and specifies what to do if a folder with the
// same name already exists. No object or value is returned by this method
// when it completes.
public IAsyncAction RenameAsync(string desiredName, NameCollisionOption option);
// Deletes the current folder or file group.
// No object or value is returned by this method when it completes.
public IAsyncAction DeleteAsync();
// Deletes the current folder or file group, optionally deleting it permanently.
// No object or value is returned by this method when it completes.
public IAsyncAction DeleteAsync(StorageDeleteOption option);
// When this method completes successfully, it returns a list of the files
// in the folder. Each file in the list is represented by a StorageFile object.
public IAsyncOperation<IReadOnlyList<StorageFile>> GetFilesAsync(CommonFileQuery query,
uint startIndex,
uint maxItemsToRetrieve);
// Gets a list of all files in the current folder and its sub-folders.
// Files are filtered and sorted based on the specified CommonFileQuery.
// When this method completes successfully, it returns a list of the files
// in the folder. Each file in the list is represented by a StorageFile object.
public IAsyncOperation<IReadOnlyList<StorageFile>> GetFilesAsync(CommonFileQuery query);
// Gets an index-based range of StorageFolder objects that represent groups of files
// in the current folder. Files are filtered and grouped based on the specified
// CommonFolderQuery and are included in the range based on the resulting indexes.
// When this method completes successfully, it returns a list of the files.
// Each folder in the list is represented by a StorageFolder.
public IAsyncOperation<IReadOnlyList<StorageFolder>> GetFoldersAsync(CommonFolderQuery query,
uint startIndex,
uint maxItemsToRetrieve);
// Gets a list of StorageFolder objects that represent groups of files in the
// current folder. Files are filtered and grouped based on the specified CommonFolderQuery.
// When this method completes successfully, it returns a list of the files (type IVectorView).
// Each folder in the list is represented by a StorageFolder.
public IAsyncOperation<IReadOnlyList<StorageFolder>> GetFoldersAsync(CommonFolderQuery query);
// Gets a StorageFolder that represents the folder at the specified file-system path.
// When this method completes successfully, it returns a StorageFolder that represents the
// folder.
public static IAsyncOperation<StorageFolder> GetFolderFromPathAsync(string path);