Add Path.FileName

Open
#7 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
52/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
csharp
Domain
backend

Research direction

The issue asks for a convenience Path.Filename(string path) API that should delegate to Path.GetFileName(string path). Start by locating where Path.GetFileName is implemented in the project and add the new public static method there. Then look for existing path-related tests around filename handling and add or update coverage for Path.Filename. Mark done when the method is available on Path and the relevant tests/build pass.

Written by the indexing model from the issue text.

Description

enhancement

Path has a public static string GetFileName(string path) but no way to get just the name component of the file path and it could be as easy as Path.Filename which defers to public static string GetFileName(string path).

Dominant language
C#
Stars
14
Forks
4
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from activescott/LessIO

All issues in activescott/LessIO

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.