Skip to content

Implement NSFileManager.copyItemAtPath #248

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

Closed
wants to merge 1 commit into from
Closed

Implement NSFileManager.copyItemAtPath #248

wants to merge 1 commit into from

Conversation

drewcrawford
Copy link
Contributor

Test coverage.

drewcrawford added a commit to AnarchyTools/atbuild that referenced this pull request Feb 2, 2016
}
defer { precondition(close(fd_from) >= 0) }
let permission = (try! attributesOfItemAtPath(srcPath)[NSFilePosixPermissions] as! NSNumber).unsignedShortValue
let fd_to = open(dstPath, O_WRONLY | O_CREAT | O_EXCL, permission)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about directories?

@drewcrawford
Copy link
Contributor Author

Thanks for your help, but I think this has crossed the threshold of "I don't want it badly enough to take it further." If that changes I'll PR again.

atrick pushed a commit to atrick/swift-corelibs-foundation that referenced this pull request Jan 12, 2021
[test] Make test URLs unique to avoid sourcekitd race
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants