Path Contexts
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- csharp
調査の方向性
ファイルやテストは指定されていません。まず既存の *Path types と LocalPath を見つけ、次にそれらのコンストラクターとパス操作をたどってください。これらの型が、区切り文字、プラットフォーム固有の動作、検証、カスタムコンストラクターコンテキスト、および TODO に記載された LocalPathContext.Instance のデフォルト動作をサポートするパスコンテキスト API を共有すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
We'll need a file system API for virtual paths. Local path (#1) should implement the same API, so it should be possible to abstract over both kinds of paths.
The API should allow to:
- manipulate foreign paths, e.g. Windows paths on a Linux computer, and vice versa;
- introduce fully virtual file systems.
Currently, I am thinking of adding a new field of type IFileSystem or IPathContext to each of our path types: hopefully, this won't create too much overhead for their storage.
Default constructors would rely on a singleton instance for the current system, something like new LocalPath("foo") => new LocalPath("foo", LocalFileSystem.Instance).
There should be a way for the user to introduce custom path validation in constructor. For example, if they want to somehow avoid Windows paths on Linux and want to throw on new LocalPath(CustomContext, @"C:\Windows"), even though this path is valid.
TODO
- Introduce a field into all
*Pathtypes. - Derive the path manipulation operations to the path context:
- path separators,
- behavior aspects such as Windows drives,
- path validation in constructors (even for
LocalPaththat doesn't do any validation otherwise).
- Allow passing the context to path constructors.
- The constructors should delegate to some
LocalPathContext.Instanceby default (if nothing else is passed). -
LocalPathContext.Instanceshould be a writable field (for global custom override). - Future enhancement request: allow
ThreadLocaland/orAsyncLocaloverride forLocalPathContext, to avoid reliance on the global state.
- 主要言語
- C#
- スター
- 104
- フォーク
- 19
- 平均マージ
- 13時間 42分
- マージ済み PR(30日)
- 9
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ForNeVeR/TruePath のほかの issue
-
enhancement good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
bug help wanted
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
-
enhancement good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
-
Dependency Dashboard オープンdashboard
難易度 3/5 1〜2日 初心者へのやさしさ 15/100
ForNeVeR/TruePath の issue をすべて見る
似ている issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
Type: enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
apache/arrow-adbc#4809 ·
-
type/automation type/tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
microsoft/vscode-azurefunctions#5197 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
microsoft/microsoft-ui-reactor#1274 ·