Bug 416046 - Suggest to check that QDir().exists(...) is used correctly
Summary: Suggest to check that QDir().exists(...) is used correctly
Status: REPORTED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-09 13:30 UTC by Alexander Volkov
Modified: 2021-01-10 13:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Volkov 2020-01-09 13:30:44 UTC
It is used in several places in KDE:
https://lxr.kde.org/search?_filestring=&_string=QDir%5C%28%5C%29.exists

Warn that QDir().exists(path) checks for the existence of path and doesn't check that path is a directory. Suggest to use QFile::exists() or QFileInfo(path).isDir() instead.