Open csm10495 opened 9 months ago
(One other side note: it was a bit of a pain to find this error, since the default value was getting used since it caught the OSError). Maybe the caught error could be more granular in the future :)
Lots of possible ways to allow this:
.replace('\\', '/')
on the paths in fetch()
and i think remove()
For anyone out there who hits this, you can resolve via:
<diskcache_obj>._sql('UPDATE Cache SET filename = REPLACE(filename, "\\", "/") WHERE filename is not NULL').fetchall()
I run this every time i get a cache object just in case.
I use diskcache and save the cache directory to a share drive. Later on, I use diskcache again to pull / update the data.
The problem I recently hit was when I added a Linux host to my previously-all-Windows pool:
It seems like diskcache saves a path inside the db based off the OS' path separator., which leads to this error ^. Can the path be normalized to the local-OS' path seperater?