PDA

View Full Version : Is there a move file to function ?



_SamSoft_
4th June 2007, 19:33
Hy, I search since 1 hour and I don't find a function move file to so my question is : "Is there a move file to function ?" ;)

I know that with QFile you can copy and remove but for move you can't :crying:

(sorry for my english, I'm 15 years old :o)

Perhaps it's renamed, no ?

marcel
4th June 2007, 20:29
There is no "move" when talking about the same filesystem. The notion has sense only across file systems.

Anyway, the function you're looking is QFile::rename().
Care must be taken when using it, mostly regarding permissions and destination existence.


Regards

_SamSoft_
4th June 2007, 20:32
It's ok, I have resolved my problem :) (with QFile::rename()) :D

Regards