-
Notifications
You must be signed in to change notification settings - Fork 1.2k
FileManager: Fix linkItem(atPath:toPath) for directories and symlinks #1547
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 test |
- Recurse into any directories found in the source. - Copy any symlinks that are found. Only regular files are hard linked.
|
@swift-ci please test |
1 similar comment
|
@swift-ci please test |
Foundation/FileManager.swift
Outdated
| } | ||
|
|
||
| open func copyItem(atPath srcPath: String, toPath dstPath: String) throws { | ||
| private func _processItem(atPath srcPath: String, toPath dstPath: String, _ body: (String, String, FileAttributeType) throws -> ()) throws { |
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.
This method seems too generically named for something that creates directories. The rest looks great though.
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.
Is _copyOrLinkDirectoryHelper ok?
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.
Works for me!
|
@swift-ci please test and merge |
1 similar comment
|
@swift-ci please test and merge |
Recurse into any directories found in the source.
Copy any symlinks that are found. Only regular files are hard linked.