void FileTransferOperation::getLocalPath(FileInfoList *currentFile, const TCHAR *localFolder, StringStorage *out) { StringStorage pathNoRoot; currentFile->getAbsolutePath(&pathNoRoot, _T('\\')); out->setString(localFolder); if (!out->endsWith(_T('\\')) && !pathNoRoot.beginsWith(_T('\\'))) { out->appendString(_T("\\")); } out->appendString(pathNoRoot.getString()); }