Added function is_shared()

Checks whether a given path is already shared.
Commit 8634cfe9b85659aaf0cce897d89fa62662b84673