/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/Utils/Storage/Helpers/StorageFolderWithPath.cs
24 строки
675 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 StorageFolderWithPath : IStorageItemWithPath { public string Path { get; } public string Name => Item?.Name ?? IO.Path.GetFileName(Path); IStorageItem IStorageItemWithPath.Item => Item; public BaseStorageFolder Item { get; } public FilesystemItemType ItemType => FilesystemItemType.Directory; public StorageFolderWithPath(BaseStorageFolder folder) : this(folder, folder.Path) { } public StorageFolderWithPath(BaseStorageFolder folder, string path) => (Item, Path) = (folder, path); } }