Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ForNeVeR opened this issue Apr 20, 2022 · 0 comments
Open

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

ForNeVeR opened this issue Apr 20, 2022 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@ForNeVeR
Copy link
Owner

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
@ForNeVeR ForNeVeR changed the title Platform-specific methods for local paths Platform-specific methods (quoting) for local paths Apr 21, 2024
@ForNeVeR ForNeVeR changed the title Platform-specific methods (quoting) for local paths Platform-specific methods (quoting etc.) for local paths Apr 21, 2024
@ForNeVeR ForNeVeR added enhancement New feature or request help wanted Extra attention is needed labels Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant