You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
LocalPathfsp= …;MyNativeFuncs.DoWinApiOperation(fsp.QuoteWinApi());// QuoteWinApi is an extension
Or, say
LocalPathfsp= …;WindowsACLacl=fsp.GetAcl();// an extension from Win packageUnixRightsrights=fsp.GetUnixPermissions();// an extension from Unix package
The text was updated successfully, but these errors were encountered:
ForNeVeR
changed the title
Platform-specific methods for local paths
Platform-specific methods (quoting) for local paths
Apr 21, 2024
ForNeVeR
changed the title
Platform-specific methods (quoting) for local paths
Platform-specific methods (quoting etc.) for local paths
Apr 21, 2024
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
Or, say
The text was updated successfully, but these errors were encountered: