Re: [Interest] QFileDevice::fileTime and QFileDevice::setFielTime

2021-11-10 Thread Thiago Macieira
On Wednesday, 10 November 2021 17:17:50 PST Scott Bloom wrote: > I have a non qfile based solution working. The problem i see, is the qt file > device is too file centric for this bit of functionality. IMO it should be > in qfileinfo, or on qdir as well as qfile We can add it to QDir. -- Thiago

Re: [Interest] QFileDevice::fileTime and QFileDevice::setFielTime

2021-11-10 Thread Scott Bloom
I have a non qfile based solution working. The problem i see, is the qt file device is too file centric for this bit of functionality. IMO it should be in qfileinfo, or on qdir as well as qfile ~~Scott Original message From: Thiago Macieira Date: 11/10/21 5:06 PM (GMT-08:

Re: [Interest] QFileDevice::fileTime and QFileDevice::setFielTime

2021-11-10 Thread Thiago Macieira
On Wednesday, 10 November 2021 14:33:05 PST Scott Bloom wrote: > Is there anyway (besides fixing QFSFileEngine::setFileTime) to support > setting the time stamp on a directory? That won't work either. Both QFSFileEngine and QFileSystemEngine operate on an open file handle. You may be able to tri

[Interest] QFileDevice::fileTime and QFileDevice::setFielTime

2021-11-10 Thread Scott Bloom
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 ); F