Skip to content

Consider adding IFileSystemInfo returning APIs in addition to IFile and IDirectory #4660

@paulomorgado

Description

@paulomorgado

Prerequisites

  • I have written a descriptive issue title
  • I have searched issues to ensure it has not already been reported

Cake runner

Cake Frosting

Cake version

6.0.0

Operating system

N/A

Operating system architecture

x64

CI Server

No response

What are you seeing?

APIs like IFileSystem, IDirectory and GlobberExtensions have APIs that return either IFile or IDirectory, but, some times, we just want a file system entry and decide what to do with it based in whether it's a file or directory.

What is expected?

context.FileSystem.GetFileSystemInfo(path)
context.Globber.GetFileSystemInfos(pattern)
directory.GetFileSystemInfos()

Steps to Reproduce

Try getting a list of file system infos that contains both files and directories,

Output log

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions