QFile fl(qApp->applicationDirPath()+"/test.txt"); QDir wokerDirU(qApp->applicationDirPath()); bool free=wokerDirU.rename(fl.name(),fl.name()); if (free)// файл не занят { }
>>>$cat /dev/random > /var/tmp/1&>>>$ls /var/tmp//var/tmp/1>>>$mv /var/tmp/1 /var/tmp/2>>>$ls /var/tmp//var/tmp/2