Is this a filepath (``fp``) or a directory (``dir``)? I think it's the latter - update if so.