Skip to content

Client path functionality doesn't handle symlinks correctly #99

@cjh1

Description

@cjh1
025-02-14T20:37:41.927055972Z     return await anext(self.gen)
2025-02-14T20:37:41.927058932Z            ^^^^^^^^^^^^^^^^^^^^^
2025-02-14T20:37:41.927064072Z   File "/usr/local/lib/python3.13/site-packages/sfapi_client/_async/paths.py", line 306, in open
2025-02-14T20:37:41.927068152Z     if not await self.parent.is_dir():
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-14T20:37:41.927075672Z   File "/usr/local/lib/python3.13/site-packages/sfapi_client/_async/paths.py", line 128, in is_dir
2025-02-14T20:37:41.927080373Z     await self.update()
2025-02-14T20:37:41.927084013Z   File "/usr/local/lib/python3.13/site-packages/sfapi_client/_async/paths.py", line 231, in update
2025-02-14T20:37:41.927087383Z     file_state = await self._ls(self.compute, str(self._path), filter_dots=False)
2025-02-14T20:37:41.927091393Z                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-14T20:37:41.927095593Z   File "/usr/local/lib/python3.13/site-packages/sfapi_client/_async/paths.py", line 180, in _ls
    raise SfApiError(directory_listing_response.error)
2025-02-14T20:37:41.927101974Z sfapi_client.exceptions.SfApiError: ls: cannot access '/XXX -> /YYY': No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions