We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
PathCollapser.Collapse
Cake .NET Tool
2,1,0
Linux, Windows
64-Bit
No response
Given the following Cake script:
var target = Argument("target", "Default"); Task("Default") .Does(() => { var one = new DirectoryPath("\\\\server\\share\\folder\\.."); var two = one.Collapse(); Information($"1: {one.FullPath} IsUNC:{one.IsUNC}"); Information($"2: {two.FullPath} IsUNC:{two.IsUNC}"); }); RunTarget(target);
The output is:
======================================== Default ======================================== 1: \\server\share\folder\.. IsUNC:True 2: //server/share IsUNC:False
I would expect a collapsed UNC path to start with \\ and not //, also I would expect IsUNC to return true.
\\
//
IsUNC
true
See script above.
The text was updated successfully, but these errors were encountered:
Merge pull request #3865 from nils-a/bugfix/GH-3858
db38c76
(#3858, #3859) Made PathCollapser aware of different formats
🎉 This issue has been resolved in version v2.2.0 🎉
The release is available on:
Your GitReleaseManager bot 📦🚀
Sorry, something went wrong.
nils-a
Successfully merging a pull request may close this issue.
Prerequisites
Cake runner
Cake .NET Tool
Cake version
2,1,0
Operating system
Linux, Windows
Operating system architecture
64-Bit
CI Server
No response
What are you seeing?
Given the following Cake script:
The output is:
What is expected?
I would expect a collapsed UNC path to start with
\\
and not//
, also I would expectIsUNC
to returntrue
.Steps to Reproduce
See script above.
Output log
No response
The text was updated successfully, but these errors were encountered: