scan: create the database's directory where its path leads (closes #119) #129

Merged
clawbot merged 1 commits from issue-119-database-directory into next 2026-10-17 04:44:54 +02:00
1 Commits
Author SHA1 Message Date
sneak 871c236d32 scan: create the database's directory where its path leads (closes #119)
check / check (push) Waiting to run
scan created a missing database directory from filepath.Dir of the
path, which cleans it as text and drops each ".." together with the
name before it. After a symlinked directory that is another directory
than the one the system reaches when it opens the file, so scan left an
empty directory beside the symlink and then failed to create the
database. lockScanDatabase and openScanDatabase now both call
createDatabaseDirectory, beside databasePath, which cuts the last
element off the path as text and creates what is missing along it. A
comment in databasePath that described scan cleaning the path now says
why the working directory has its symlinks resolved.

Model: opus-5-5
2026-10-17 02:16:17 +00:00