Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 834
Sam Avatar asked Mar 28 '26 18:03

Sam


1 Answers

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.

like image 198
Alexander Avatar answered Mar 30 '26 09:03

Alexander



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!