Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Platform-specific methods (quoting etc.) for local paths

Đang mở
#3 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
20/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
csharp
Lĩnh vực
operating-systems

Hướng nghiên cứu

Bắt đầu bằng cách xem xét abstraction LocalPath hiện có và implementation Vacuum AbsolutePath được liên kết để xử lý việc quoting path và UNC. Issue không nêu file hoặc test nào trong repository; để hoàn thành sẽ cần thống nhất phạm vi cho các API và package path dành riêng cho từng platform, bao gồm quoting của Windows, ACLs và permission của Unix.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement help wanted

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 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

LocalPath fsp = …;
MyNativeFuncs.DoWinApiOperation(fsp.QuoteWinApi()); // QuoteWinApi is an extension

Or, say

LocalPath fsp = …;
WindowsACL acl = fsp.GetAcl(); // an extension from Win package
UnixRights rights = fsp.GetUnixPermissions(); // an extension from Unix package
Ngôn ngữ chính
C#
Star
104
Fork
19
Merge trung bình
1 ngày 6 phút
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ForNeVeR/TruePath

Tất cả issue của ForNeVeR/TruePath

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.