From kde-core-devel Wed Apr 30 21:03:21 2008 From: =?UTF-8?B?SmFyb3PFgmF3IFN0YW5pZWs=?= Date: Wed, 30 Apr 2008 21:03:21 +0000 To: kde-core-devel Subject: [patch] make KDirWatch ignore empty paths Message-Id: <4818DE99.2010509 () iidea ! pl> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=120958944526232 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--------------060105090406040906040905" This is a multi-part message in MIME format. --------------060105090406040906040905 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit For review: -ignore empty paths -bonus: do not check if the path starts with /dev dir on windows -- regards / pozdrawiam, Jaroslaw Staniek Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on Kexi & KOffice (http://www.kexi.pl/en, http://www.koffice.org/kexi) KDE Libraries for MS Windows (http://windows.kde.org) --------------060105090406040906040905 Content-Type: text/plain; name="kdirwatch.patch" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="kdirwatch.patch" SW5kZXg6IGtkaXJ3YXRjaC5jcHANCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NCi0tLSBrZGlyd2F0Y2guY3Bw CSh3ZXJzamEgODAyODE3KQ0KKysrIGtkaXJ3YXRjaC5jcHAJKGtvcGlhIHJvYm9jemEpDQpA QCAtNDE5LDcgKzQxOSw3IEBADQogS0RpcldhdGNoUHJpdmF0ZTo6RW50cnkqIEtEaXJXYXRj aFByaXZhdGU6OmVudHJ5KGNvbnN0IFFTdHJpbmcmIF9wYXRoKQogewogLy8gd2Ugb25seSBz dXBwb3J0IGFic29sdXRlIHBhdGhzCi0gIGlmIChRRGlyOjppc1JlbGF0aXZlUGF0aChfcGF0 aCkpIHsKKyAgaWYgKF9wYXRoLmlzRW1wdHkoKSB8fCBRRGlyOjppc1JlbGF0aXZlUGF0aChf cGF0aCkpIHsKICAgICByZXR1cm4gMDsKICAgfQogCkBAIC01OTYsNyArNTk2LDExIEBADQog ICAgICAgICAgICAgICAgIEVudHJ5KiBzdWJfZW50cnksIGJvb2wgaXNEaXIsIEtEaXJXYXRj aDo6V2F0Y2hNb2RlcyB3YXRjaE1vZGVzKQogewogICBRU3RyaW5nIHBhdGggKF9wYXRoKTsK LSAgaWYgKHBhdGguc3RhcnRzV2l0aCgiL2Rldi8iKSB8fCAocGF0aCA9PSAiL2RldiIpKQor ICBpZiAocGF0aC5pc0VtcHR5KCkKKyNpZm5kZWYgUV9XU19XSU4KKyAgICB8fCBwYXRoLnN0 YXJ0c1dpdGgoIi9kZXYvIikgfHwgKHBhdGggPT0gIi9kZXYiKQorI2VuZGlmCisgICkKICAg ICByZXR1cm47IC8vIERvbid0IGV2ZW4gZ28gdGhlcmUuCiAKICAgaWYgKCBwYXRoLmxlbmd0 aCgpID4gMSAmJiBwYXRoLmVuZHNXaXRoKCBRTGF0aW4xQ2hhciggJy8nICkgKSApCg== --------------060105090406040906040905--