KDirWatch and files that are removed/created

Albert Astals Cid aacid at kde.org
Thu Aug 31 21:00:06 UTC 2017


Okular is watching the file 
	"/home/kdeunstable/breeze-icons/README.md"
and its parent folder
	"/home/kdeunstable/breeze-icons"
that is being edited by kate, when you save in kate, this is what Okular sees 
coming from KDirWatch

	dirty "/home/kdeunstable/breeze-icons"
	dirty "/home/kdeunstable/breeze-icons/.README.md.kate-swp"
	dirty "/home/kdeunstable/breeze-icons/README.md.kn7048"
	dirty "/home/kdeunstable/breeze-icons"
	deleted "/home/kdeunstable/breeze-icons/README.md"
	created "/home/kdeunstable/breeze-icons/README.md"


Given that I'm also watching "/home/kdeunstable/breeze-icons" I was expecting 
that i would get

	dirty "/home/kdeunstable/breeze-icons"
	dirty "/home/kdeunstable/breeze-icons/.README.md.kate-swp"
	dirty "/home/kdeunstable/breeze-icons/README.md.kn7048"
	dirty "/home/kdeunstable/breeze-icons"
	deleted "/home/kdeunstable/breeze-icons/README.md"
	dirty "/home/kdeunstable/breeze-icons"
	created "/home/kdeunstable/breeze-icons/README.md"
	dirty "/home/kdeunstable/breeze-icons"

Am i expecting wrong?

Cheers,
  Albert

P.S: Okular has code that expects it to work like the second case, so i think 
at some point in the past that is what happened, though i compiled the old 
kdelibs4 verison and I don't get that either.


More information about the Kde-frameworks-devel mailing list