Sam
Sam

Reputation: 840

Mount local folder as volume using Swift

I'm looking for a way to mount a Local folder as a Volume in OSX. Searching so far hasn't got any results. I want to do this programatically via Swift. For instance, I want to mount /Users/shoaib/Test to /Volumes/MyVolume which can be accessed via the Finder.

Upvotes: 3

Views: 639

Answers (1)

Alexander
Alexander

Reputation: 63147

Take a look at LoopbackFS. It's an example implementation of the osxfuse framework, that does exactly what you want. It requires the installation of FUSE for OS X.

It's written in Objective C, but porting it to Swift shouldn't be too hard. In fact, it's exactly what I'm currently doing for a project. Hopefully (if I have the time), I'll be finished by the end of the week, and I'll post what I've made.

Upvotes: 1

Related Questions