-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
lib/osutil, lib/scanner: Run symlink test on Windows when possible #4548
Conversation
// '/' does not work in link's content | ||
oldname = filepath.FromSlash(oldname) | ||
|
||
// need the exact location of the oldname when its relative to determine if its a directory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're really worried about the dictionary attacks: Its->it's
This should have gone to review, such that I don't wast time with multiple such non-issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:D none of this code is written by us.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh damn, I don't read the copyright stuff. But that's a relieve, because that functions is s**t xD
@st-review merge |
Purpose
Adds a shit-ugly function to create symlinks on Windows in tests only. The walk test now runs on Windows instead of being skipped (not visible in the code; but the build server now has one more passed test and one fewer skipped). Other tests could do the same.