Closed vwxyzjn closed 5 years ago
Suppose the Bitwarden item name is House Purchase of 2001 Hamilton St Apt 1705 (Notice there is a trailing space)
House Purchase of 2001 Hamilton St Apt 1705
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.
Solved by #11
Suppose the Bitwarden item name is
House Purchase of 2001 Hamilton St Apt 1705
(Notice there is a trailing space)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