Merge pull request #1 from simonrobson/master

A start...
Here's one approach that could work. Basically building canonical paths and comparing them. Not tested much, as I didn't have time to write tests. But functionally almost identical, I think

I feel like this should move into a separate class though, That target_path would be a better thing to read/write. So if you wrapped it up in some sort of StoreManager, the api could do all it's file manipulation through that. And the manager would be quite easily testable.

Additionally, you might want to distinguish files and folders more.
Merge pull request #2 from simonrobson/master

You asked for it 👍