Skip to content

logging: Create intermediate directories of log file path#319

Merged
FedeDP merged 1 commit intoFedeDP:masterfrom
pasweistorz:create-intermediate-logfile-path-dirs
Mar 4, 2026
Merged

logging: Create intermediate directories of log file path#319
FedeDP merged 1 commit intoFedeDP:masterfrom
pasweistorz:create-intermediate-logfile-path-dirs

Conversation

@pasweistorz
Copy link
Contributor

As mentioned in issue #318, the path <home>/.local/share/ doesn't necessarily exist on a system. In this pull request I try to create those intermediate directories before creating <home>/.local/share/clight/.

This resolves issue #318.

What do you think?

Create directories ${HOME}/.local and ${HOME}/.local/share before creating
${HOME}/.local/share/clight directory as they do not necessarily exist.

This resolves issue FedeDP#318.

Signed-off-by: Weisser, Pascal <pascal.weisser.ext@karlstorz.com>
Copy link
Owner

@FedeDP FedeDP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this one! Sorry for the very late response, but it makes sense!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants