Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client: add cleanAndExpandPath helper. #330

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

dajohi
Copy link
Member

@dajohi dajohi commented Aug 24, 2023

No description provided.

@dajohi dajohi changed the title clientdb: add cleanAndExpandPath helper. client: add cleanAndExpandPath helper. Aug 25, 2023
client/client.go Outdated
@@ -886,8 +887,15 @@ func (c *Client) maybeResetAllKXAfterConn(expDays int) {

// Backup
func (c *Client) Backup(_ context.Context, rootDir, destPath string) (string, error) {
destPath = cleanAndExpandPath(destPath)
Copy link
Collaborator

Choose a reason for hiding this comment

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

this shouldn't be in the client package. let the /backup command pass the correct destPath.

@miki-totefu miki-totefu merged commit 8f902aa into companyzero:master Aug 28, 2023
5 checks passed
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