Invalid conversion from 'const_FlashStringHelper*' to 'uint16_t'

I think I understand what's going on now.

The 'open' method takes it's directory input by reference. Which would allow it to modify the variable passed to it. But 'this' cannot be modified. So the compiler complains.