I just want to use qftp to upload a file .at first , i have to determine whether the dir exists or not. But how to implement the code to judge and at the same time upload file in one function?
just like that :
Qstringlist dirlist;
ftp.list(dirlist) ;
if (!dirlist.contain(onedir))
{
ftp.mkdir(onedir);
}
ftp.put(myFile) ;