|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.IO;
using Microsoft.Extensions.FileSystemGlobbing.Abstractions;
namespace Microsoft.Extensions.FileSystemGlobbing.Internal
{
internal sealed class InMemoryFileInfo : FileInfoBase
{
private readonly InMemoryDirectoryInfo _parent;
public InMemoryFileInfo(string file, InMemoryDirectoryInfo parent)
{
FullName = file;
Name = Path.GetFileName(file);
_parent = parent;
}
public override string FullName { get; }
public override string Name { get; }
public override DirectoryInfoBase ParentDirectory => _parent;
}
}
|