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

Runtime error when having bitwarden item with trailing spaces. #10

Closed
vwxyzjn opened this issue Dec 6, 2018 · 1 comment
Closed

Runtime error when having bitwarden item with trailing spaces. #10

vwxyzjn opened this issue Dec 6, 2018 · 1 comment

Comments

@vwxyzjn
Copy link
Owner

vwxyzjn commented Dec 6, 2018

bugreport
Suppose the Bitwarden item name is House Purchase of 2001 Hamilton St Apt 1705 (Notice there is a trailing space)

	cmd := exec.Command("bw", "get", "attachment", attachmentID, "--itemid", itemID,
		"--session", sessionKey, "--output", outputDir)

will actually create a folder with that trailing space, but windows somehow don't recognize it once it's there, causing the following line to fail

err = archiver.Zip.Write(writer, []string{BackupFolderName})
// panic: portwarden_backup: stat: CreateFile portwarden_backup: The system cannot find the file specified.
@vwxyzjn
Copy link
Owner Author

vwxyzjn commented Dec 8, 2018

Solved by #11

@vwxyzjn vwxyzjn closed this as completed Dec 8, 2018
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

No branches or pull requests

1 participant