Yesterday I set out to add a Notebox Mismanager 3 function to move selected notes to a particular category, which at this point means moving files from wherever they happen to be into a specified folder, plus maintaining the file modification date+time, because QFile::copy doesn't.
About seven hours later I went to bed.
About seven hours after getting up again it sort of works. That's ten lines of code per hour. My brain is inelastic.
As yet it doesn't cope with duplicate filenames. I'm not sure whether it should try. Testing exposed a drawback to the file-scanning code that builds the grid, in that folders containing no .txt, .htm or .html files are ignored. Which makes a kind of sense, but also means that empty disk-based categories are only fleetingly possible. If you move all the significant files out of them, they won't show up on the next run...
No comments:
Post a Comment