<PackageReference Include="Microsoft.Extensions.FileSystemGlobbing" Version="10.0.2" />

Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileSystemInfoBase

public abstract class FileSystemInfoBase
Shared abstraction for files and directories.
public abstract string FullName { get; }

A string containing the full path of the file or directory.

public abstract string Name { get; }

A string containing the name of the file or directory.

public abstract DirectoryInfoBase ParentDirectory { get; }

The parent directory for the current file or directory.

protected FileSystemInfoBase()