nvzqz / FileKit

Simple and expressive file management in Swift

Home Page:https://nvzqz.github.io/FileKit/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for hard links

tfe opened this issue · comments

Hi, I just ran into a case where I had to user a hard link instead of a symlink and had to fall back to NSFileManager to accomplish it. The API is almost identical to the symlink function:

createSymbolicLinkAtURL(_:withDestinationURL:)
createSymbolicLinkAtPath(_:withDestinationPath:)
linkItemAtURL(_:toURL:)
linkItemAtPath(_:toPath:)

Docs: https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSFileManager_Class/index.html#//apple_ref/doc/uid/20000305-SW30

Thanks! If I have some time I'll add this and submit a PR, but I wanted to at least raise the flag so the issue is logged.