/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App.Storage/Ftp/FtpStorable.cs
39 строк
838 B
0x5BFA
Code Quality: Re-organize the structure of Files.App.Storage (#17340)
29 июл 2025, 00:54
Не верифицирован
29 июл 2025, 00:54
7203007
Код
Авторство
О чём код?
// Copyright (c) Files Community // Licensed under the MIT License. using FluentFTP; namespace Files.App.Storage { public abstract class FtpStorable : IStorableChild { /// <inheritdoc/> public virtual string Name { get; protected set; } /// <inheritdoc/> public virtual string Id { get; } /// <summary> /// Gets the parent folder of the storable, if any. /// </summary> protected virtual IFolder? Parent { get; } protected internal FtpStorable(string path, string name, IFolder? parent) { Id = FtpHelpers.GetFtpPath(path); Name = name; Parent = parent; } /// <inheritdoc/> public Task<IFolder?> GetParentAsync(CancellationToken cancellationToken = default) { return Task.FromResult(Parent); } protected AsyncFtpClient GetFtpClient() { return FtpHelpers.GetFtpClient(Id); } } }