View Single Post
Old 11-02-2021, 05:12 PM   #41
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,884
Karma: 6120478
Join Date: Nov 2009
Device: many
Okay, tracked this down to FolderKeeper::AddContentFileToFolder and specifically to this line.

QFile::copy(fullfilepath, new_file_path);

So it appears that copying "permissions" must be a "feature" of Qt's QFile::copy() but only for non html text files. html text files are handled by the Importer code which does not use QFile::copy.

We can of course rewrite this to do a text based file read and destination file write if we determine the filetype is in fact text and not binary.

I will look into it.
KevinH is offline   Reply With Quote