View Single Post
Old 01-01-2021, 09:24 PM   #454
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Quote:
Originally Posted by baskerville View Post
Are you sure that the exclusion pattern is involved in this case?

I'm asking because I tried Pocket, and it seems to work fine when .kobo isn't whitelisted.



Here's a combination of the current pattern, that matches paths that start with a hidden directories (except .kobo* and .adobe*), and a pattern that matches paths that start with at least one visible directory followed by an hidden directory:
Code:
(\\.(?!kobo|adobe).*?|([^.][^/]*/)+\\..+)
That seems to do the trick, thanks

Code:
Jan  2 03:23:49 nickel: (   144.461 @ 0x19998d8 / ui.debug) void SyncFileSystemCommand::findFilesToParse(const QString&, QStringList&) skipping "/mnt/onboard/.addons" , matches "(\.(?!kobo|adobe).*?|([^.][^/]*/)+\..+)" 
Jan  2 03:23:49 nickel: (   144.462 @ 0x19998d8 / ui.debug) void SyncFileSystemCommand::findFilesToParse(const QString&, QStringList&) skipping "/mnt/onboard/.adds" , matches "(\.(?!kobo|adobe).*?|([^.][^/]*/)+\..+)" 
Jan  2 03:23:50 nickel: (   144.468 @ 0x19998d8 / ui.debug) void SyncFileSystemCommand::findFilesToParse(const QString&, QStringList&) skipping "/mnt/onboard/.foo" , matches "(\.(?!kobo|adobe).*?|([^.][^/]*/)+\..+)" 
Jan  2 03:23:50 nickel: (   144.481 @ 0x19998d8 / ui.debug) void SyncFileSystemCommand::findFilesToParse(const QString&, QStringList&) skipping "/mnt/onboard/.kobo/certificates" , matches "(\.kobo|koboExtStorage)/certificates" 
Jan  2 03:23:50 nickel: (   144.487 @ 0x19998d8 / ui.debug) void SyncFileSystemCommand::findFilesToParse(const QString&, QStringList&) skipping "/mnt/onboard/.kobo/dict" , matches "(\.kobo|koboExtStorage)/dict" 
Jan  2 03:23:50 nickel: (   144.498 @ 0x19998d8 / ui.debug) void SyncFileSystemCommand::findFilesToParse(const QString&, QStringList&) skipping "/mnt/onboard/.kobo/kepub" , matches "(\.kobo|koboExtStorage)/kepub" 
Jan  2 03:23:50 nickel: (   144.504 @ 0x19998d8 / ui.debug) void SyncFileSystemCommand::findFilesToParse(const QString&, QStringList&) skipping "/mnt/onboard/.kobo/webstorage" , matches "(\.kobo|koboExtStorage)/webstorage" 
Jan  2 03:23:50 nickel: (   144.505 @ 0x19998d8 / ui.debug) void SyncFileSystemCommand::findFilesToParse(const QString&, QStringList&) skipping "/mnt/onboard/.niluje" , matches "(\.(?!kobo|adobe).*?|([^.][^/]*/)+\..+)" 
Jan  2 03:23:50 nickel: (   144.506 @ 0x19998d8 / ui.debug) void SyncFileSystemCommand::findFilesToParse(const QString&, QStringList&) skipping "/mnt/onboard/.reading-states" , matches "(\.(?!kobo|adobe).*?|([^.][^/]*/)+\..+)" 
Jan  2 03:23:50 nickel: (   144.506 @ 0x19998d8 / ui.debug) void SyncFileSystemCommand::findFilesToParse(const QString&, QStringList&) skipping "/mnt/onboard/.Spotlight-V100" , matches "(\.(?!kobo|adobe).*?|([^.][^/]*/)+\..+)" 
Jan  2 03:23:50 nickel: (   144.506 @ 0x19998d8 / ui.debug) void SyncFileSystemCommand::findFilesToParse(const QString&, QStringList&) skipping "/mnt/onboard/.Trashes" , matches "(\.(?!kobo|adobe).*?|([^.][^/]*/)+\..+)" 
Jan  2 03:23:50 nickel: (   145.290 @ 0x19998d8 / ui.debug) void SyncFileSystemCommand::findFilesToParse(const QString&, QStringList&) skipping "/mnt/onboard/foo/.foo" , matches "(\.(?!kobo|adobe).*?|([^.][^/]*/)+\..+)"
EDIT: https://github.com/NiLuJe/kfmon/comm...941d22cca1b4d6 .

Last edited by NiLuJe; 01-01-2021 at 09:54 PM.
NiLuJe is offline   Reply With Quote