Is this a path or a file-like object?