Closed gatlinnewhouse closed 7 years ago
Ran into some errors:
[ERROR] Error reading hashtable: invalid character '{' after top-level value
hashtable file for reference:
{
"Size":1,
"Capacity":10,
"Items":
[
{
"First":
{
"Value":
{
"Key":"The_Quest/WEB_STUFF/TEST_DOCUMENTS_FOR_DRIVERAKER/article_template/article_template_exports/article_template.docx",
"Value":"The_Quest/WEB_STUFF/TEST_DOCUMENTS_FOR_DRIVERAKER/article_template/article_template_exports/article_template.docx"
},
"Next":null
},
"Last":
{
"Value":
{
"Key":"The_Quest/WEB_STUFF/TEST_DOCUMENTS_FOR_DRIVERAKER/article_template/article_template_exports/article_template.docx",
"Value":"The_Quest/WEB_STUFF/TEST_DOCUMENTS_FOR_DRIVERAKER/article_template/article_template_exports/article_template.docx"
},
"Next":null
},
"Size":1
}
]
}
{
"Size":1,
"Capacity":10,
"Items":
[
{
"First":
{
"Value":
{
"Key":"The_Quest/WEB_STUFF/TEST_DOCUMENTS_FOR_DRIVERAKER/article_template/article_template_exports/article_template.docx",
"Value":"The_Quest/WEB_STUFF/TEST_DOCUMENTS_FOR_DRIVERAKER/article_template/article_template_exports/article_template.docx"
},
"Next":null
},
"Last":
{
"Value":
{
"Key":"The_Quest/WEB_STUFF/TEST_DOCUMENTS_FOR_DRIVERAKER/article_template/article_template_exports/article_template.docx",
"Value":"The_Quest/WEB_STUFF/TEST_DOCUMENTS_FOR_DRIVERAKER/article_template/article_template_exports/article_template.docx"
},
"Next":null
},
"Size":1
}
]
}
nullnullnullnullnull
And the binary will not sync files with spaces in their name. Perhaps I need to make all the names unix friendly, within a tmp directory, before converting to markdown.
Nevermind about needing to make filenames unix friendly. Still have some errors with unfriendly unix filepaths:
➜ go run src/driveraker.go
Reading configuration...
Finished reading configuration!
Syncing Google Drive...
drive: Resolving...
Exported '/home/deleuze/drivetemp/The_Quest/WEB_STUFF/TEST_DOCUMENTS_FOR_DRIVERAKER/glow opera/Copy of glow_opera_article.docx' to '/home/deleuze/drivetemp/The_Quest/WEB_STUFF/TEST_DOCUMENTS_FOR_DRIVERAKER/glow opera/Copy of glow_opera_article.docx_exports/Copy of glow_opera_article.docx.docx'
Exported '/home/deleuze/drivetemp/The_Quest/WEB_STUFF/TEST_DOCUMENTS_FOR_DRIVERAKER/article_template/article_template' to '/home/deleuze/drivetemp/The_Quest/WEB_STUFF/TEST_DOCUMENTS_FOR_DRIVERAKER/article_template/article_template_exports/article_template.docx'
Done syncing!
Interpreting command line output...
Checking if hashtable already exists...
Looking for already synced documents...
Checking for key: The_Quest/WEB_STUFF/TEST_DOCUMENTS_FOR_DRIVERAKER/glow opera/Copy of glow_opera_article.docx_exports/Copy of glow_opera_article.docx.docx
Checking for key: The_Quest/WEB_STUFF/TEST_DOCUMENTS_FOR_DRIVERAKER/article_template/article_template_exports/article_template.docx
Looking for modified documents...
File paths: [/home/deleuze/drivetemp/The_Quest/WEB_STUFF/TEST_DOCUMENTS_FOR_DRIVERAKER/glow opera/Copy of glow_opera_article.docx_exports/Copy of glow_opera_article.docx.docx /home/deleuze/drivetemp/The_Quest/WEB_STUFF/TEST_DOCUMENTS_FOR_DRIVERAKER/article_template/article_template_exports/article_template.docx]
Done!
docx file paths: [/home/deleuze/drivetemp/The_Quest/WEB_STUFF/TEST_DOCUMENTS_FOR_DRIVERAKER/glow opera/Copy of glow_opera_article.docx_exports/Copy of glow_opera_article.docx.docx /home/deleuze/drivetemp/The_Quest/WEB_STUFF/TEST_DOCUMENTS_FOR_DRIVERAKER/article_template/article_template_exports/article_template.docx]
Converting synced docx files into markdown files...
Converting /home/deleuze/drivetemp/The_Quest/WEB_STUFF/TEST_DOCUMENTS_FOR_DRIVERAKER/glow opera/Copy of glow_opera_article.docx_exports/Copy of glow_opera_article.docx.docx
Converting /home/deleuze/drivetemp/The_Quest/WEB_STUFF/TEST_DOCUMENTS_FOR_DRIVERAKER/article_template/article_template_exports/article_template.docx
pandoc: []
pandoc: []
Adding hugo front-matter to markdown files...
Moving cover image image to hugo directory...
Moving cover image image to hugo directory...
[ERROR] Error moving ggg.png: exit status 1
Moved the image: /bin/cp: cannot stat '/home/deleuze/drivetemp/The_Quest/WEB_STUFF/TEST_DOCUMENTS_FOR_DRIVERAKER/glow opera/ggg.png': No such file or directory
The glow opera article does not have a ggg.png
file. But the path is also wrong.
How to install? Test run it.