Skip to content

Add support to symlinked directories for c8y config #554

@S0NN1

Description

@S0NN1

OS details

  • c8y version: 2.52.3
  • OS: macOS 15.7 24G222 arm64
  • Host: Mac16,7
  • Kernel: 24.6.0
  • Shell: zsh 5.9
  • Terminal: ghostty
  • CPU: Apple M4 Pro

Description

if ~/.cumulocity/ is a symlink the saved sessions are not working, see below:

~
❯ ls -lah .cumulocity
lrwxr-xr-x@ 1 sonninni  staff    52B Oct  6 14:46 .cumulocity -> /Users/sonninni/workspace/dotfiles/linux/.cumulocity

~
❯ set-session
2025-10-06T14:48:06.043+0200    ERROR   commandError: no sessions found
2025-10-06T14:48:06.044+0200    ERROR   commandError: exit status 100
Set session failed

~
❯ ls -lah .cumulocity/
total 24
drwxr-xr-x@ 6 sonninni  staff   192B Oct  6 14:43 .
drwxr-xr-x@ 4 sonninni  staff   128B Oct  6 14:22 ..
-rw-r--r--@ 1 sonninni  staff   169B Oct  3 09:39 .key
drwxr-xr-x@ 4 sonninni  staff   128B Oct  6 09:44 activitylog
-rw-------@ 1 sonninni  staff   812B Oct  6 14:31 REDACTED.json
-rw-------@ 1 sonninni  staff   810B Oct  6 14:31 REDACTED-2.json

If I copy the directory the CLI is able to read the sessions.
It would be good to add support for symlinked directories, so that the user can track them with version control tools (ofc after removing sensible data)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions