I can get the file name of a specific path, is there a way to know the type of the file?
Unsolved
General and Desktop
-
@IknowQT said in I can get the file name of a specific path, is there a way to know the type of the file?:
is there a way to tell if a file is a folder or a file by the name of the file?
QDir::entryInfoList() returns a container with QFileInfo - objects where you can get the information from.
-
@IknowQT said in I can get the file name of a specific path, is there a way to know the type of the file?:
is there a way to tell if a file is a folder or a file by the name of the file?
How would that be? Can you tell whether something is a file or a folder from its name? Say it's called
foo
, is that a file or a directory?