[Qt-interest] QFile::rename safety
Israel Brewster
israel at frontierflying.com
Thu May 6 21:02:28 CEST 2010
How "safe" is QFile::rename? Is there a situation under which, if it fails, the file/directory in question could end up being deleted? I've always been taught never to move, instead to copy, verify that the copy succeeded, then delete the old one. In my particular usage case, though, I'm not actually moving the file, just changing the same, so should that be safe enough, given how rename works? Thanks.
-----------------------------------------------
Israel Brewster
Computer Support Technician II
Era Alaska
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x7293
-----------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100506/6f91fff3/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Israel Brewster.vcf
Type: text/directory
Size: 417 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100506/6f91fff3/attachment.bin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100506/6f91fff3/attachment-0001.html
More information about the Qt-interest-old
mailing list