copy files from one directory to another. i want to copy a file from somewhere to another place, but i want to tell him if dest directory doesn't exists first create it and then copy file:
QFile::copy("/home/linarcx/Documents/print.pdf", "/home/linarcx/mymine/print.pdf");
This code won't work if there is no mymine directory exists. any idea?
Well it might have a makedir function
https://stackoverflow.com/questions/2241808/checking-if-a-folder-exists-and-creating-folders-in-qt-c
Обсуждают сегодня