/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/Utils/Storage/Helpers/StorageFileWithPath.cs
24 строки
648 B
Yair
Code Quality: Updated license header
31 дек 2024, 05:03
31 дек 2024, 05:03
8436c6d
Код
Авторство
О чём код?
// Copyright (c) Files Community // Licensed under the MIT License. using Windows.Storage; using IO = System.IO; namespace Files.App.Utils { public sealed class StorageFileWithPath : IStorageItemWithPath { public string Path { get; } public string Name => Item?.Name ?? IO.Path.GetFileName(Path); IStorageItem IStorageItemWithPath.Item => Item; public BaseStorageFile Item { get; } public FilesystemItemType ItemType => FilesystemItemType.File; public StorageFileWithPath(BaseStorageFile file) : this(file, file.Path) { } public StorageFileWithPath(BaseStorageFile file, string path) => (Item, Path) = (file, path); } }