From 29960013ca743c1f253b238fd66aaf454c2e9a76 Mon Sep 17 00:00:00 2001 From: Icereed Date: Tue, 7 Jan 2025 16:42:45 +0100 Subject: [PATCH] Update paperless.go Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- paperless.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paperless.go b/paperless.go index 497620d..e35068e 100644 --- a/paperless.go +++ b/paperless.go @@ -426,7 +426,7 @@ func (client *PaperlessClient) UpdateDocuments(ctx context.Context, documents [] // DownloadDocumentAsImages downloads the PDF file of the specified document and converts it to images func (client *PaperlessClient) DownloadDocumentAsImages(ctx context.Context, documentId int) ([]string, error) { // Create a directory named after the document ID - docDir := filepath.Join(client.GetCacheFolder(), fmt.Sprintf("/document-%d", documentId)) + docDir := filepath.Join(client.GetCacheFolder(), fmt.Sprintf("document-%d", documentId)) if _, err := os.Stat(docDir); os.IsNotExist(err) { err = os.MkdirAll(docDir, 0755) if err != nil {