While QFileDevice::fileTime works on files and directories, however it doesn't 
appear it is possible to use setFileTime on a directory.

For a given paths the following works great for two files

QFile file1( path1 );
auto dt = file1.fileTime( QFileDevice::FileBirthTime );

QFile file2( path2 );
File2.open( QFile::ReadWrite | QFile::ExistingOnly );
File2.setFileTime( path2, QFileDevice::FileBirthTime );

However, when path 2 is a directory, the open fails (it's a directory after 
all) and setFileTime only works on open files.

Is there anyway (besides fixing QFSFileEngine::setFileTime) to support setting 
the time stamp on a directory?

Scott


_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to