When running the this sample code from QFileInfo documentation:
QFileInfo fi("/tmp/archive.tar.gz");
QString base = fi.baseName(); // base = "archive"
Would it result in accesses to the file system?
I’m assuming that calling fi.lastModified() or fi.exists() would require the file system to be accessed, but what about it I only use it to extract parts of the file name (extension, base file name, only the directory, etc.)?
Without looking at the implementation of methods it is hard to say precisely which method access the filesystem and which not. But I found in the library this sort of explanation that answer your question: