How to compare two storage?

I want to check if two storage paths are the same. I have the storage my:storage storage1 and I have the storage my:storage storage2. You can see the content of both storage paths in the picture

Continue to help post