Cirrious.MvvmCross.Plugins.File.WindowsCommon.MvxWindowsCommonBlockingFileStore.CreateStorageFileFromRelativePath C# (CSharp) Метод

CreateStorageFileFromRelativePath() приватный статический Метод

private static CreateStorageFileFromRelativePath ( string path ) : StorageFile
path string
Результат Windows.Storage.StorageFile
        private static StorageFile CreateStorageFileFromRelativePath(string path)
        {
            var fullPath = ToFullPath(path);
            var directory = Path.GetDirectoryName(fullPath);
            var fileName = Path.GetFileName(fullPath);
            var storageFolder = StorageFolder.GetFolderFromPathAsync(directory).Await();
            var storageFile = storageFolder.CreateFileAsync(fileName).Await();
            return storageFile;
        }