OSX 10.10.3 MacBook Pro 15-Zoll
I'm currently writing an mac app which is writing files to a mounted device. Everyone knows not to (physically) disconnect a device while using it but sometimes it'll happen anyways, so i tested my app's behavior.
My app behaved reasonably (didn't freezed etc.) but there was something different happening. The path of my device is
'/Volumes/MyDevice'
and after i reconnected the device there where two entries in the finder
'/Volumes/MyDevice'
'/Volumes/MyDevice'
but one of the entries was an empty folder the other was a mounted device.
And when i checked the url of the device with NSLog it said
'/Volumes/MyDevice%201'
I use NSFileManager to access the file system.
Does someone know what this behavior means ? Or if there are some special tactics with unmountable devices ?