-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Allow FileSystem.exists to follow symlinks or not #1403
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
Conversation
|
@swift-ci please smoke test |
| let target = path.appending(component: "target") | ||
| try fs.writeFileContents(target, bytes: "source") | ||
|
|
||
| // source and target exist |
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.
Nit: Capitalize and punctuation.
// Source nad target exists.
| XCTAssertEqual(fs.exists(source, followSymlink: true), true) | ||
| XCTAssertEqual(fs.exists(source, followSymlink: false), true) | ||
|
|
||
| // source only exists |
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.
Nit: Capitalize and punctuation.
| XCTAssertEqual(fs.exists(source, followSymlink: true), false) | ||
| XCTAssertEqual(fs.exists(source, followSymlink: false), true) | ||
|
|
||
| // none exist |
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.
Nit: Capitalize and punctuation.
02369af to
95bd923
Compare
|
@swift-ci please smoke test |
No description provided.