Cirrious.MvvmCross.Plugins.File.WindowsCommon.MvxWindowsCommonBlockingFileStore.CreateStorageFileFromRelativePath C# (CSharp) Method

CreateStorageFileFromRelativePath() private static method

private static CreateStorageFileFromRelativePath ( string path ) : StorageFile
path string
return 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;
        }