I know the /dev device files aren't regular files but didn't notice anything in the documentation about that being an issue.
My code simply creates a QDir for /dev and uses the QDir::entrylist() method to display the list of files and directories. It appears to be only printing directories under /dev but no device files.
CodePudding user response:
Dir::system filter causes the QDir::entrylist() to print system files (i.e., sda1 ...) and so on.