Platform-specific methods (quoting etc.) for local paths
- 主要言語
- C#
- スター
- 104
- フォーク
- 18
- 平均マージ
- 9分
- マージ済み PR(30日)
- 2
説明
First of all, there are some specific APIs for paths (say, `GetCompressedFileSize` on Windows, also Unix rights and Windows ACLs) which we may seek to implement.
Second: there are several absolutely different ways to convert paths to strings. For certain Windows APIs, it's important to handle these properly (i.e. quote paths, or append a UNC prefix where appropriate, see [Vacuum's `AbsolutePath`](https://github.com/ForNeVeR/Vacuum/blob/c16aab2b8b9e164d4889a17494160dbe315df2f0/Vacuum/AbsolutePath.fs#L49-L57) as inspiration).
Obviously, not all users want the platform-specific parts of the file path API, so we may include some separate platform-specific packages for all of this.
I imagine our users calling something like
```csharp
LocalPath fsp = …;
MyNativeFuncs.DoWinApiOperation(fsp.QuoteWinApi()); // QuoteWinApi is an extension
```
Or, say
```csharp
LocalPath fsp = …;
WindowsACL acl = fsp.GetAcl(); // an extension from Win package
UnixRights rights = fsp.GetUnixPermissions(); // an extension from Unix package
```
コントリビューションガイド
調査の方向性
まず、既存の LocalPath 抽象化と、パスのクォートおよび UNC の処理に関するリンク先の Vacuum AbsolutePath 実装を確認します。issue ではリポジトリ内のファイルやテストが指定されていないため、完了にはプラットフォーム固有のパス API とパッケージについて、Windows のクォート、ACLs、Unix のパーミッションを含む範囲を確定する必要があります。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp
- 領域
- operating-systems
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 20/100